From 5c78cbd3be7b782c1cc81825adf2a2595317a929 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 8 Apr 2023 14:40:57 +0200 Subject: pkg/platform: deprecate OSType in favor or runtime.GOOS This const looks to only be there for "convenience", or _possibly_ was created with future normalization or special handling in mind. In either case, currently it is just a direct copy (alias) for runtime.GOOS, and defining our own type for this gives the impression that it's more than that. It's only used in a single place, and there's no external consumers, so let's deprecate this const, and use runtime.GOOS instead. Signed-off-by: Sebastiaan van Stijn --- daemon/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon') diff --git a/daemon/info.go b/daemon/info.go index 26c5851a50..c2ef837280 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -44,7 +44,7 @@ func (daemon *Daemon) SystemInfo() *types.Info { OperatingSystem: operatingSystem(), OSVersion: osVersion(), IndexServerAddress: registry.IndexServer, - OSType: platform.OSType, + OSType: runtime.GOOS, Architecture: platform.Architecture, RegistryConfig: daemon.registryService.ServiceConfig(), NCPU: sysinfo.NumCPU(), -- cgit v1.2.1