CI: check dependency licences with cargo-deny #594
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/599"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Kaairim on 2026-11-24T02:19:33Z.
CONTRIBUTING.md asks for GPL-2.0-compatible dependencies, but nothing checks it. This adds
deny.tomland a CI job (EmbarkStudios/cargo-deny-action@v2,check licenses sources) on ubuntu – it reads Cargo.lock and crate metadata and builds nothing.The allow list is THIRD_PARTY.md's "When adding dependencies" list (MIT, BSD, Zlib, ISC, Unlicense, LGPL-2.1, GPL-2.0, MPL-2.0) plus Unicode-3.0, which unicode-ident needs today (THIRD_PARTY.md's crate line does not name it yet). Apache-2.0 alone is not allowed; "MIT OR Apache-2.0" passes through MIT. Sources: crates.io only.
What is in it
deny.toml.github/workflows/ci.yml: alicencesjob next to the Windows buildTested
retouris BSD-2-Clause,unicode-identis (MIT OR Apache-2.0) AND Unicode-3.0)Not tested
AI use
Improvements by William "kaairim" Deivid (wdcore).
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:15:40Z.
Two contributors checked independently and found that #276 solves the same problem (for #265) in a different way: #1607, group D37. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:06:49Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:51Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:47:33Z.
Triage (#1607) – head
15f150bOverlaps #276, which also adds deny.toml and a cargo-deny job in ci.yml; #276 additionally checks bans and runs RustSec advisories on a schedule, while this PR keeps a policy allow-list (the THIRD_PARTY.md list) instead of an inventory of the licences in use. That is a different choice, not the same change.
Problem in the diff: deny.toml and the ci.yml comment say XCL is GPL-2.0-only and allow only GPL-2.0-compatible licences. Main was relicensed to GPL-3.0-or-later (
06f90c19, #3002): the workspace crates now declareGPL-3.0-or-later, which is not in[licenses] allow, socargo deny check licenseswould fail on main after a rebase, and Apache-2.0 / LGPL-3.0 / GPL-3.0 (allowed by THIRD_PARTY.md now) would be refused. The allow-list needs updating to the current THIRD_PARTY.md policy.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.