summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2023-04-08 14:40:57 +0200
committerSebastiaan van Stijn <github@gone.nl>2023-04-08 14:57:33 +0200
commit5c78cbd3be7b782c1cc81825adf2a2595317a929 (patch)
treed32ae23ce0be91f4df78a70e8a42feaa6d5483f7 /pkg
parentcf9a76fe8f449174f380fa5b0a512e52258baca3 (diff)
downloaddocker-5c78cbd3be7b782c1cc81825adf2a2595317a929.tar.gz
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 <github@gone.nl>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/platform/platform.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/platform/platform.go b/pkg/platform/platform.go
index 78adc6fab0..8d90433b60 100644
--- a/pkg/platform/platform.go
+++ b/pkg/platform/platform.go
@@ -19,6 +19,8 @@ var Architecture string
// OSType holds the runtime operating system type of the process. It is
// an alias for [runtime.GOOS].
+//
+// Deprecated: use [runtime.GOOS] instead.
const OSType = runtime.GOOS
func init() {