-
Notifications
You must be signed in to change notification settings - Fork 846
fix(build): make --tag oci-archive:xxx.tar work with simple images #6284
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aeijdenberg The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b984fae
to
73df404
Compare
Thanks! Though this bypasses the |
You're right, and we certainly do want to keep writing the image out. I'm pretty sure I had that working in an earlier iteration - I'll see what I missed, fix up and add more tests. Thanks for the pickup... |
73df404
to
34cbb3a
Compare
34cbb3a
to
730da37
Compare
Previously using outputing to a tar would fail with a simple `FROM xxx` image. This now will complete the copy (including passing through any specified timestamp) and stop before trying to tag a non-registry stored result. Signed-off-by: Adam Eijdenberg <[email protected]>
730da37
to
fd7f29d
Compare
Rebased and included the additional fix originally submitted in #6298 |
A friendly reminder that this PR had no activity for 30 days. |
I think this helped me get around an error I was seeing. @nalind - mind another review? |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This allows
buildah build -f <(echo 'FROM busybox') --tag=oci-archive:out.tar
to succeed without error.How to verify it
bats test added.
Which issue(s) this PR fixes:
FIxes #6280
Special notes for your reviewer:
It's not 100% clear to me this is the right solution to fix, but I noticed that other code which adds tags to images, such as
buildah/imagebuildah/executor.go
Lines 1054 to 1057 in 8403fd6
Does this PR introduce a user-facing change?