Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Update buildkit #46

Merged
merged 128 commits into from
Jul 7, 2021
Merged

Update buildkit #46

merged 128 commits into from
Jul 7, 2021

Conversation

alexcb
Copy link

@alexcb alexcb commented Jul 6, 2021

here's an example of earthly working against this branch: earthly/earthly#1086

thaJeztah and others added 30 commits March 29, 2021 13:17
I noticed this when building a Dockerfile that failed because a file didn't
exist, so went through error messages that looked like they had a duplicate
"not found" in the output;

    [+] Building 0.9s (6/9)
     => [internal] load build definition from Dockerfile                0.2s
     => => transferring dockerfile: 306B                                0.0s
     => [internal] load .dockerignore                                   0.1s
     => => transferring context: 2B                                     0.0s
     => [internal] load metadata for docker.io/library/alpine:latest    0.0s
     => CACHED [1/5] FROM docker.io/library/alpine                      0.0s
     => [internal] load build context                                   0.6s
     => => transferring context: 701B                                   0.5s
     => ERROR [2/5] ADD no-such-file.txt /                              0.0s
    ------
     > [2/5] ADD no-such-file.txt /:
    ------
    failed to compute cache key: "/no-such-file.txt" not found: not found

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
…ed pipes.

Signed-off-by: Siebe Schaap <siebe@digibites.nl>
…ndows rather than syscall.

Signed-off-by: Siebe Schaap <siebe@digibites.nl>
…ndowsPipeDialer().

Signed-off-by: Siebe Schaap <siebe@digibites.nl>
…th; allowed backslashes in host.

Signed-off-by: Siebe Schaap <siebe@digibites.nl>
This updates all occurrences of Go 1.13 to Go 1.16; also updated
the code that's used to redact credentials in URLs to use the Go
implementation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Support for Windows OpenSSH agent forwarding
- pkg/signal: ignore SIGURG on all platforms
- pkg/archive: use v2 capabilities in layer archives
- update ishidawataru/sctp to fix possible socket leak when bind fails

docker/cli:

- config: print deprecation warning when falling back to ~/.dockercfg

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
go.mod: update docker and docker cli to v20.10.7
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
cache: fix possible nil dereferences
hack: update proto generators for arm64
This allows using the resolver package without having to import
the buildkit daemon configuration.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
move RegistryConfig to resolver package
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
add hack/shell helper for dev shell environment
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
This provides the basic functionality for the parser to recognize and
parse provided heredocs in supported commands.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
This modifies the command structures to support inline files, as well as
provides the logic to compile them down into appropriate LLB
definitions.

Signed-off-by: Justin Chadwell <me@jedevc.com>
tonistiigi and others added 24 commits June 29, 2021 21:33
Add support for heredocs in the ONBUILD command
Allow none differ on local source to avoid false Dockerfile matches
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Improve build errors and remove useless grpc prefix
progressui: print logs for failed step as summary in plain mode
Previously, heredoc names were restricted to simple alphanumeric
strings. However, heredocs should support much more complex use-cases,
including quoting anywhere, as well as allowing special symbols like `.`
for easily expressing file extensions.

This patch adds support for these more complex cases, by using the shell
lexer to parse each heredoc name. Additionally, we include improvements
to the lexer to optionally preserve escape tokens to avoid problems when
lexing words that have already been lexed before.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Finalize was only used outside the cache package in one place, which
called it with the commit arg set to false. The code path followed
when commit==false turned out to essentially be a no-op because
it set "retain cache" to true if it was already set to true.

It was thus safe to remove the only external call to it and remove it
from the interface. This should be helpful for future efforts to
simplify the equal{Mutable,Immutable} fields in cacheRecord, which exist
due to the "lazy commit" feature that Finalize is tied into.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Improve heredoc parsing to allow more generic shell-words
Improve progress and history messages for heredoc-related commands
Remove unneeded Finalize method from ImmutableRef.
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
Fix ref leak if fileop ref fails to mount.
Remove duplicate "not found" from some error messages
contenthash: use SeekLowerBound to seek radix tree
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@alexcb alexcb marked this pull request as ready for review July 6, 2021 23:41
@alexcb alexcb requested a review from vladaionescu July 6, 2021 23:44
@alexcb alexcb merged commit 467c8f2 into earthly-main Jul 7, 2021
@alexcb alexcb deleted the update-buildkit branch July 7, 2021 02:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.