-
Notifications
You must be signed in to change notification settings - Fork 142
checkout commits in s2n-bignum import.sh #2646
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2646 +/- ##
==========================================
+ Coverage 78.81% 78.83% +0.01%
==========================================
Files 667 667
Lines 114088 114088
Branches 16063 16063
==========================================
+ Hits 89923 89940 +17
+ Misses 23390 23373 -17
Partials 775 775 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
third_party/s2n-bignum/import.sh
Outdated
echo "Fetching repository ..." | ||
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${TMP} --branch ${GITHUB_TARGET} --single-branch > /dev/null | ||
GITHUB_COMMIT=$(cd ${TMP} >/dev/null; git rev-parse HEAD) | ||
GITHUB_COMMIT=$(cd ${TMP} > /dev/null; git checkout ${COMMIT_HASH} > /dev/null; git rev-parse HEAD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Follow the mlkem-native importer and only import the exact commit you care about. At the same time, remove distinction between GITHUB_TARGET and COMMIT_HASH:
git init >/dev/null
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY >/dev/null
git fetch origin --depth 1 $GITHUB_SHA >/dev/null
git checkout FETCH_HEAD >/dev/null
@manastasova What's the status of this PR? Are you going to keep working on it, or should it be closed? |
Example usage: GITHUB_REPOSITORY=awslabs/s2n-bignum GITHUB_TARGET=main COMMIT_HASH=717b57a ./import.sh
1b3f308
to
6ca18fc
Compare
Short commit hashes are no longer supported to avoid fetch complexity
Thanks, @hanno-becker. I just updated the import file. |
Add support for checking out specific commits in s2n-bignum import.sh
Example usage:
GITHUB_REPOSITORY=awslabs/s2n-bignum COMMIT_HASH=717b57a ./import.sh
Issues:
Addresses: Allow to choose s2n-bignum specific commit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.