-
Notifications
You must be signed in to change notification settings - Fork 26
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
attribution: upload dependency attributions as part of GitHub releases #382
Conversation
tools/attribution/attribution.sh
Outdated
echo "Clarifying cargo-cross & dependency licenses..." | ||
git clone https://github.com/cross-rs/cross/ /tmp/cargo-cross | ||
pushd /tmp/cargo-cross | ||
git reset --hard 7b79041 |
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.
Where do these two Git commit hashes come from? Can we pass them in as variables or in a config file?
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.
These commit hashes are what we lock to in the GitHub Actions workflow for performing a release. Per your other comment, I noted that we aren't distributing these tools with Twoliter and have just removed them from the attributions script!
tools/attribution/attribution.sh
Outdated
# =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= =^.^= | ||
echo "Clarifying cargo-dist & dependency licenses..." | ||
git clone https://github.com/webern/cargo-dist/ /tmp/cargo-dist | ||
pushd /tmp/cargo-dist | ||
git reset --hard 3dcbe823 | ||
popd |
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.
Do cargo-cross
and cargo-dist
end up in the release artifacts in some way?
2962ac2
to
3981565
Compare
^ Removes |
Makefile
Outdated
docker build \ | ||
--build-arg BOTTLEROCKET_SDK_IMAGE=$(BOTTLEROCKET_SDK_IMAGE) \ | ||
--build-arg UID=$(shell id -u) \ | ||
--build-arg GID=$(shell id -u) \ |
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.
--build-arg GID=$(shell id -u) \ | |
--build-arg GID=$(shell id -g) \ |
3981565
to
c1edcd9
Compare
^ fixes bug found by @sam-berning |
Description of changes:
This change:
license-scan
tool in the Bottlerocket SDK to generate attributions for 3rd party dependencies.Testing done:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.