Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAVE IMAGE --cache-hint fails if not using --no-output #744

Closed
mxey opened this issue Jan 29, 2021 · 0 comments · Fixed by #745
Closed

SAVE IMAGE --cache-hint fails if not using --no-output #744

mxey opened this issue Jan 29, 2021 · 0 comments · Fixed by #745
Assignees
Labels
type:bug Something isn't working

Comments

@mxey
Copy link

mxey commented Jan 29, 2021

If I use SAVE IMAGE --cache-hint in an Earthfile, earthly will fail, unless I run it with --no-output

Earthfile with minimal reproduction:

FROM debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3

test:
    SAVE IMAGE --cache-hint
$ earthly-prerelease --version
earthly-prerelease version prerelease-08eb387e832c7f8b6874f366d3ba512e0b61cc9a

$ earthly-prerelease +test 
           buildkitd | Found buildkit daemon as docker container (earthly-buildkitd)
debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 | --> Load metadata linux/amd64
               +base | --> FROM debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3
               +base | [          ] resolve docker.io/library/debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 ...[██████████] resolve docker.io/library/debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 ... 100%
              output | --> exporting outputs
              output | WARN: (exporting outputs) exporting image with no name
Error: build target: build main: bkClient.Build: failed to solve: rpc error: code = Unknown desc = exporting image with no name
$ earthly-prerelease --no-output +test 
           buildkitd | Found buildkit daemon as docker container (earthly-buildkitd)
debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 | --> Load metadata linux/amd64
               +base | --> FROM debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3
               +base | [          ] resolve docker.io/library/debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 ...[██████████] resolve docker.io/library/debian:10@sha256:a5edb9fa5b2a8d6665ed911466827734795ef10d2b3985a46b7e9c7f0161a6b3 ... 100%
              output | --> exporting outputs
              output | [██████████] sending tarballs ... 100%
=========================== SUCCESS ===========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants