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

fix: remove invalid cache-from registry entries #10135

Closed

Conversation

johanneswuerbach
Copy link

@johanneswuerbach johanneswuerbach commented Jan 3, 2023

What I did

When specifying:

cache_from:
  - type=gha

docker compose currently translates this into --cache-from type=gha --cache-from type=registry,ref=type=gha, which causes a warning.

This PR removes the explicit addition of type=registry, which shouldn't be necessary as the cache flag parsing handles this case already https://github.com/docker/buildx/blob/25ceb9067893be764f9ab439722835eece2fe169/util/buildflags/cache.go#L22

This code was originally added in 70694e1, but I couldn't find any mention why it would be necessary.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

image

@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team April 24, 2023 13:04
@ndeloof
Copy link
Contributor

ndeloof commented Apr 24, 2023

@johanneswuerbach sorry for the laaaaaate review on this PR. Could you please rebase your branch to fix conflict ?

@johanneswuerbach
Copy link
Author

Looks like this was already fixed in #10374

@johanneswuerbach johanneswuerbach deleted the rm-cache-from-registry branch April 24, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants