moby--moby/builder/dockerfile
Sebastiaan van Stijn cfddecc3d2
builder/dockerfile: remove leftover LCOW platform checks
This removes some of the checks that were added in 0cba7740d4,
but should no longer be needed.

- `dockerfile.BuildFromConfig()` is used for `docker (container) commmit` and
  `docker (image) import`. For `docker import`, we're failing early already.
  For `commit`, it won't be possible to have a container that doesn't have the
  right operating-system, so there's no need to validate.
- `dispatchRequest.getImageOrStage()`: simplify the check; all checks resulted
  in an error on Windows, so it came down to "Windows does not support FROM scratch".
- `dispatchState.beginStage()`: `image.OperatingSystem()` already defaults to the
  `runtime.GOOS` if unset, so remove the local default fallback.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-25 15:23:11 +01:00
..
buildargs.go
buildargs_test.go
builder.go builder/dockerfile: remove leftover LCOW platform checks 2022-01-25 15:23:11 +01:00
builder_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
builder_windows.go
containerbackend.go
copy.go builder/dockerfile: make containsWildcards() platform-specific again 2021-07-27 23:14:38 +02:00
copy_test.go
copy_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
copy_windows.go builder/dockerfile: make normalizeDest() platform-specific again 2021-07-27 23:14:40 +02:00
dispatchers.go builder/dockerfile: remove leftover LCOW platform checks 2022-01-25 15:23:11 +01:00
dispatchers_test.go builder/dockerfile: remove leftover LCOW platform checks 2022-01-25 15:23:11 +01:00
dispatchers_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
dispatchers_unix_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
dispatchers_windows.go
dispatchers_windows_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
evaluator.go builder/dockerfile: remove leftover LCOW platform checks 2022-01-25 15:23:11 +01:00
evaluator_test.go revendor BuildKit (master branch) 2021-06-16 01:17:48 +02:00
imagecontext.go
imagecontext_test.go
imageprobe.go
internals.go builder/dockerfile: make normalizeDest() platform-specific again 2021-07-27 23:14:40 +02:00
internals_linux.go
internals_linux_test.go
internals_test.go
internals_windows.go pkg/system: deprecate some consts and move them to pkg/idtools 2021-06-18 23:16:15 +02:00
internals_windows_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
metrics.go
mockbackend_test.go
utils_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00