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

improve secret errors #3301

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexcb
Copy link
Collaborator

@alexcb alexcb commented Sep 26, 2023

Previously one would see:

Error: build target: build main: failed to solve: Earthfile line 245:12 with docker run: unlazy force execution: unauthorized

Now one will see:

Error: build target: build main: failed to solve: Earthfile line 245:12 with docker run: unlazy force execution: unable to lookup secret dockerhub-mirror/user (id=name=dockerhub-mirror%2Fuser&org=earthly-technologies&project=core&v=1): unauthorized

This could use some further improvements, but without this change, it was not clear that I was logged into a different earthly account that did not have access to the earthly-technologies org.

Previously one would see:

    Error: build target: build main: failed to solve: Earthfile line 245:12 with docker run: unlazy force execution: unauthorized

Now one will see:

    Error: build target: build main: failed to solve: Earthfile line 245:12 with docker run: unlazy force execution: unable to lookup secret dockerhub-mirror/user (id=name=dockerhub-mirror%2Fuser&org=earthly-technologies&project=core&v=1): unauthorized

This could use some further improvements, but without this change, it
was not clear that I was logged into a different earthly account that
did not have access to the earthly-technologies org.

Signed-off-by: Alex Couture-Beil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

1 participant