compose/pkg
Sebastiaan van Stijn 4761fd88b0 pkg/compose: build: remove permissions warning on Windows
This warning was added in [moby@4a8b3ca] to print a warning when building
Linux images from a Windows client. Window's filesystem does not have an
"executable" bit, which mean that, for example, copying a shell script
to an image during build would lose the executable bit. So for Windows
clients, the executable bit would be set on all files, unconditionally.

Originally this was detected in the client, which had direct access to
the API response headers, but when refactoring the client to use a common
library in [moby@535c4c9], this was refactored into a `ImageBuildResponse`
wrapper, deconstructing the API response into an `io.Reader` and a string
field containing only the `OSType` header.

This was the only use and only purpose of the `OSType` field, and now that
BuildKit is the default builder for Linux images, this warning didn't get
printed unless BuildKit was explicitly disabled.

This patch removes the warning, so that we can potentially remove the
field, or the `ImageBuildResponse` type altogether.

[moby@4a8b3ca]: 4a8b3cad60
[moby@535c4c9]: 535c4c9a59

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-09-24 10:26:05 +02:00
..
api pkg/compose: build: remove permissions warning on Windows 2025-09-24 10:26:05 +02:00
bridge fixed lint error 2025-07-28 10:07:03 +02:00
compose pkg/compose: build: remove permissions warning on Windows 2025-09-24 10:26:05 +02:00
e2e resolve secrets based on env var before executing bake 2025-09-22 14:56:15 +02:00
mocks volume ls command can run without a project 2025-09-10 09:41:47 +02:00
progress improved lint error 2025-07-27 15:12:38 +02:00
prompt (refactoring) introduce monitor to manage containers events and application termination 2025-07-16 17:24:11 +02:00
remote go.mod: bump buildx v0.28.0-rc2, buildkit v0.24.0-rc2 2025-09-02 07:28:06 +02:00
utils prefer use of slices.DeleteFunc 2025-05-27 15:16:50 +02:00
watch pkg/watch: remove unused IsWindowsShortReadError 2025-09-24 09:29:27 +02:00