From 0998c7e363f7bd4f56020cb14b47bcf721f4b38c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 27 Jul 2021 13:02:43 +0200 Subject: [PATCH] system: remove LCOWSupported() utility Signed-off-by: Sebastiaan van Stijn --- builder/dockerfile/dispatchers_test.go | 2 +- pkg/system/{lcow_unsupported.go => image_os.go} | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) rename pkg/system/{lcow_unsupported.go => image_os.go} (67%) diff --git a/builder/dockerfile/dispatchers_test.go b/builder/dockerfile/dispatchers_test.go index 3799b91c32..75ae30b52d 100644 --- a/builder/dockerfile/dispatchers_test.go +++ b/builder/dockerfile/dispatchers_test.go @@ -116,7 +116,7 @@ func TestFromScratch(t *testing.T) { } err := initializeStage(sb, cmd) - if runtime.GOOS == "windows" && !system.LCOWSupported() { + if runtime.GOOS == "windows" { assert.Check(t, is.Error(err, "Linux containers are not supported on this system")) return } diff --git a/pkg/system/lcow_unsupported.go b/pkg/system/image_os.go similarity index 67% rename from pkg/system/lcow_unsupported.go rename to pkg/system/image_os.go index 09150f1282..e3de86be29 100644 --- a/pkg/system/lcow_unsupported.go +++ b/pkg/system/image_os.go @@ -4,11 +4,6 @@ import ( "strings" ) -// LCOWSupported returns true if Linux containers on Windows are supported. -func LCOWSupported() bool { - return false -} - // IsOSSupported determines if an operating system is supported by the host. func IsOSSupported(os string) bool { return strings.EqualFold(runtime.GOOS, os)