Skip to content

Implement ADD --checksum flag#5152

Merged
openshift-merge-bot[bot] merged 2 commits intocontainers:mainfrom
jfroy:add-checksum
Nov 17, 2023
Merged

Implement ADD --checksum flag#5152
openshift-merge-bot[bot] merged 2 commits intocontainers:mainfrom
jfroy:add-checksum

Conversation

@jfroy
Copy link
Copy Markdown
Contributor

@jfroy jfroy commented Nov 9, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Implement the new ADD --checksum flag. See https://docs.docker.com/build/dockerfile/release-notes/#160.

How to verify it

  • Run add.bats and bud.bats tests.
  • Build Containerfile with ADD --checksum line.
  • Run buildah add --checksum ... command.

Which issue(s) this PR fixes:

Fixes #5135

Special notes for your reviewer:

Does this PR introduce a user-facing change?

- The ADD command now supports the --checksum flag for HTTP sources.

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 9, 2023
@jfroy jfroy force-pushed the add-checksum branch 2 times, most recently from 3cb9a6a to 980262a Compare November 10, 2023 00:05
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Nov 10, 2023

@jfroy Thanks
/approve
LGTM
@flouthoc @nalind PTAL

Copy link
Copy Markdown
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR LGTM other than comments above

@TomSweeneyRedHat
Copy link
Copy Markdown
Member

The overlay unit test is timing out. I don't believe it's related to this change, I suspect it's a flake and will rerun

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Nov 11, 2023

You need to squash your commits.
git rebase -i origin
git push --force

@jfroy
Copy link
Copy Markdown
Contributor Author

jfroy commented Nov 11, 2023

You need to squash your commits.

git rebase -i origin

git push --force

Yep will do.

Pick up parsing support for ADD --checksum flag.

Signed-off-by: Jean-Francois Roy <jf@devklog.net>
@jfroy
Copy link
Copy Markdown
Contributor Author

jfroy commented Nov 13, 2023

You need to squash your commits. git rebase -i origin git push --force

I didn't squash the vendor commit since I felt that should be separate, but I'm happy to squash that too. I don't know if you have a policy to keep dependency updates separate.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Nov 13, 2023

The vendor is fine to do separately.

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Nov 13, 2023

/lgtm
/approve
/hold
Thanks @jfroy

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Nov 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, jfroy, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Nov 17, 2023

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit cb30712 into containers:main Nov 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved kind/feature Categorizes issue or PR as related to a new feature. lgtm locked - please file new issue/PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for ADD --checksum in Containerfile

5 participants