-
Notifications
You must be signed in to change notification settings - Fork 40
add complete copyright/licensing info to source tarball #1375
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
Conversation
src/bootstrap/src/ferrocene/dist.rs
Outdated
@@ -138,6 +141,11 @@ impl Step for SourceTarball { | |||
subsetter.add_file(&builder.src, &builder.src.join(item)); | |||
} | |||
|
|||
// Generate comprehensive copyright data and include the generated files | |||
for item in builder.ensure(GenerateCopyright) { | |||
subsetter.add_file(&builder.src, &item); |
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.
What will be the path COPYRIGHT.html
and COPYRIGHT-library.html
will be copied to? They should be placed at the top level, not inside the build/
directory in the tarball (if that's the case).
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.
that is what happens... will adjust
0e5d525
to
d1de901
Compare
am unsure about the latest commit... writing to the root of the repo smells unpleasant |
Yeah we should find a better approach. If you look at the implementation of subsetter.add_file(&path.parent().unwrap(), &path); |
d1de901
to
5bbe736
Compare
bors try |
tryBuild failed: |
5bbe736
to
bddba99
Compare
This currently adds the following files: - build/COPYRIGHT.html - build/COPYRIGHT-library.html - license-metadata.json
bddba99
to
d3dc1cc
Compare
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.
bors merge
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
Build succeeded: |
This currently adds the following files: - build/COPYRIGHT.html - build/COPYRIGHT-library.html - license-metadata.json Ferrocene-backport-of: #1375
1398: Backport to `release/1.86` r=tshepang a=ferrocene-automations[bot] This PR backports the following PRs to the `release/1.86` branch: * #1326 * #1342 * #1350 * #1370 * #1377 * #1375 Co-authored-by: Tshepang Mbambo <tshepang.mbambo@ferrous-systems.com> Co-authored-by: Ana Hobden <operator@hoverbear.org> Co-authored-by: Lukas Wirth <lukas.wirth@ferrous-systems.com> Co-authored-by: Samuel Wright <samuel.wright@ferrous-systems.com>
Upstream recently added an automated way of generating copyright files (rust-lang/rust#135588), so we also need to do similar, because we have a different way of generating release tarballs.