diff --git a/pkg/api/dryrunclient.go b/pkg/api/dryrunclient.go index 83d214b5b..b7e623652 100644 --- a/pkg/api/dryrunclient.go +++ b/pkg/api/dryrunclient.go @@ -218,8 +218,7 @@ func (d *DryRunClient) ImageBuild(ctx context.Context, reader io.Reader, options rc := io.NopCloser(bytes.NewReader(jsonMessage)) return build.ImageBuildResponse{ - Body: rc, - OSType: "", + Body: rc, }, nil } diff --git a/pkg/compose/build_classic.go b/pkg/compose/build_classic.go index 2de2c9c43..c5c3a4f49 100644 --- a/pkg/compose/build_classic.go +++ b/pkg/compose/build_classic.go @@ -24,7 +24,6 @@ import ( "io" "os" "path/filepath" - "runtime" "strings" "github.com/compose-spec/compose-go/v2/types" @@ -195,18 +194,6 @@ func (s *composeService) doBuildClassic(ctx context.Context, project *types.Proj } return "", err } - - // Windows: show error message about modified file permissions if the - // daemon isn't running Windows. - if response.OSType != "windows" && runtime.GOOS == "windows" { - // if response.OSType != "windows" && runtime.GOOS == "windows" && !options.quiet { - _, _ = fmt.Fprintln(s.stdout(), "SECURITY WARNING: You are building a Docker "+ - "image from Windows against a non-Windows Docker host. All files and "+ - "directories added to build context will have '-rwxr-xr-x' permissions. "+ - "It is recommended to double check and reset permissions for sensitive "+ - "files and directories.") - } - return imageID, nil }