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 builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
buildargs_test.go builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
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 Add canonical import comment 2018-02-05 16:51:57 -05:00
containerbackend.go Test: Add buffer to two channels to avoid blocking goroutine 2020-08-27 18:53:43 -04:00
copy.go builder/dockerfile: make containsWildcards() platform-specific again 2021-07-27 23:14:38 +02:00
copy_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
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 Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
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 Add variant to image.Image and legacy builder 2019-09-24 22:18:16 +00:00
imagecontext_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
imageprobe.go Add canonical import comment 2018-02-05 16:51:57 -05:00
internals.go builder/dockerfile: make normalizeDest() platform-specific again 2021-07-27 23:14:40 +02:00
internals_linux.go replace pkg/symlink with github.com/moby/sys/symlink 2020-11-03 11:17:12 +01:00
internals_linux_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
internals_test.go builder/remotecontext: use lowercase for error 2020-08-11 10:46:18 +02:00
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 goimports: fix imports 2019-09-18 12:56:54 +02:00
mockbackend_test.go builder/dockerfile/mockbackend_test.go: suppress SA9005 (staticcheck) 2019-10-18 00:45:27 +02:00
utils_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00