Skip to content
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

Use reuse tool 4.0 #127923

Merged
merged 6 commits into from
Jul 22, 2024
Merged

Use reuse tool 4.0 #127923

merged 6 commits into from
Jul 22, 2024

Conversation

jonathanpallant
Copy link
Contributor

This change upgrades us to reuse-tool 4.0.3, which has a new TOML format configuration instead of the old .reuse/dep5 Debian-style file.

  • Updated requirements file to install reuse-4.0.3
  • Ran reuse convert-dep5 to switch to new file format
  • Switched over to override so the REUSE.toml file takes precedence over whatever random Copyright strings reuse finds in the source tree.

Should fix #127361

) Updated requirements file
) Ran `reuse convert-dep5` to switch to new file format
@rustbot
Copy link
Collaborator

rustbot commented Jul 18, 2024

r? @Kobzol

rustbot has assigned @Kobzol.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-meta Area: Issues about the rust-lang/rust repository. A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jul 18, 2024
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

This is great, thanks for working on it! I saw that you already discussed this with Pietro on the Ferrocene repo, and he is the author of the original issue, so he might want to bless this.

I cross-checked the TOML file with the original reuse file, everything looks fine. So apart from one nit (left a comment) LGTM.

r? @pietroalbini

@rustbot rustbot assigned pietroalbini and unassigned Kobzol Jul 18, 2024
@rust-log-analyzer

This comment has been minimized.

) brew install [email protected]
) python3.10 -m venv /tmp/myenv
) source /tmp/myenv/bin/activate
) pip install pip-tools
) /tmp/myenv/bin/pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
Also remove to licenses we no longer need, and given REUSE.toml reads some basic idea of what it's about.
@pietroalbini
Copy link
Member

pietroalbini commented Jul 22, 2024

Can you also revert c6eb03b? With precendence = "override" set for LLVM, there should be no need for that manual tweaking anymore :D

r=me otherwise

Now that we have reuse-tool 4.0, we no longer need to massage the JSON license data to collapse LLVM into a single copyright notice and license - reuse-tool can do it for us using an annotation in REUSE.toml.

This effectively reverts c6eb03b.
@jonathanpallant
Copy link
Contributor Author

That change has now been removed.

@pietroalbini
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jul 22, 2024

📌 Commit 2e971bf has been approved by pietroalbini

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 22, 2024
Rollup of 9 pull requests

Successful merges:

 - rust-lang#117932 (Correct rustdoc section where we talk about rustdoc emitting errors on invalid code)
 - rust-lang#125990 (Rename `deprecated_safe` lint to `deprecated_safe_2024`)
 - rust-lang#127506 (rustc_target: add known safe s390x target features)
 - rust-lang#127820 (Rewrite and rename `issue-14698`. `issue-33329` and `issue-107094` `run-make` tests to rmake or ui)
 - rust-lang#127923 (Use reuse tool 4.0)
 - rust-lang#128008 (Start using `#[diagnostic::do_not_recommend]` in the standard library)
 - rust-lang#128036 (add more tests)
 - rust-lang#128051 (rustdoc: revert spacing change in item-table)
 - rust-lang#128059 (Add regression test for items list size (rust-lang#128023))

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a7e884f into rust-lang:master Jul 22, 2024
6 checks passed
@rustbot rustbot added this to the 1.82.0 milestone Jul 22, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jul 22, 2024
Rollup merge of rust-lang#127923 - ferrocene:use-reuse-tool-4.0, r=pietroalbini

Use reuse tool 4.0

This change upgrades us to reuse-tool 4.0.3, which has a new TOML format configuration instead of the old `.reuse/dep5` Debian-style file.

* Updated requirements file to install reuse-4.0.3
* Ran `reuse convert-dep5` to switch to new file format
* Switched over to `override` so the `REUSE.toml` file takes precedence over whatever random Copyright strings `reuse` finds in the source tree.

Should fix rust-lang#127361
@tshepang tshepang deleted the use-reuse-tool-4.0 branch July 23, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues about the rust-lang/rust repository. A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to REUSE 4.x and REUSE.toml
6 participants