buildx/build
Jonathan A. Sternberg d7de22c61f
build: raise maximum size limit for dockerfile and fix size check
Raise the maximum size limit for the dockerfile and correct the size
check. The size check was intended to use the size attribute from the
file stat, but the original gogo version confused the `Size()`
method (which returned the size of the proto message) with the `Size`
attribute (which was named `Size_`).

During the conversion, we noticed the mistake but kept the incorrect
behavior for the sake of keeping the conversion simple.

This also raises the maximum limit because 512 kB is likely a bit too
conservative. The limit has been raised to 2 MB and the limit has been
included in the error message.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-10-03 12:12:40 -05:00
..
build.go protobuf: remove gogoproto 2024-10-02 15:51:59 -05:00
dial.go vendor: update buildkit to f7bda278b7e2 2024-07-02 22:24:55 -07:00
driver.go vendor: update buildkit to f7bda278b7e2 2024-07-02 22:24:55 -07:00
driver_test.go vendor: update buildkit to f7bda278b7e2 2024-07-02 22:24:55 -07:00
git.go build: avoid possible panic when reading git info 2024-08-23 16:42:04 +03:00
git_test.go build: refactor setting git info to local mounts 2024-07-16 21:50:06 -07:00
invoke.go lint: gopls fixes 2024-04-24 17:58:17 -07:00
localstate.go build: fix localstate for remote context and stdin 2024-06-28 14:56:45 +02:00
opt.go Update to pass DockerMappingSrc and Dst in with Inputs, and return Inputs through Build 2024-09-18 20:56:31 -07:00
provenance.go protobuf: remove gogoproto 2024-10-02 15:51:59 -05:00
replicatedstream.go build: allow builds from stdin for multi-node builders 2024-08-14 13:13:18 +03:00
replicatedstream_test.go build: allow builds from stdin for multi-node builders 2024-08-14 13:13:18 +03:00
result.go protobuf: remove gogoproto 2024-10-02 15:51:59 -05:00
url.go build: raise maximum size limit for dockerfile and fix size check 2024-10-03 12:12:40 -05:00
utils.go remove uses of github.com/docker/docker/builder/remotecontext package 2024-05-26 11:06:02 +02:00
utils_test.go Permit '=' separator and '[ipv6]' in --add-host 2023-11-22 10:52:14 +00:00