Repository navigation
docs: record the pliron git pin in dependency-licenses.csv - #631
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the repository’s dependency license inventory to accurately reflect the current pinned pliron* dependencies, aligning provenance/version metadata with Cargo.lock and resolving the omission called out in #630.
Changes:
- Update
plironandpliron-deriveentries to0.16.0and a pinned git source underpliron-org/pliron. - Add the missing
pliron-llvmentry with the same git pin and updated repository URL. - Distinguish these as
3rd Party (git)to reflect non-registry provenance.
Suppressed comments (1)
dependency-licenses.csv:55
- The pliron-derive row’s Description column says "LLVM Dialect for pliron", but pliron-derive is used as a proc-macro crate (e.g., cuda-oxide-book/compiler/pliron.md notes
#[pliron_op(...)]comes from pliron-derive). This makes the inventory misleading; update the Description to reflect that it provides proc-macro helpers.
pliron-derive,0.16.0,Apache-2.0,Yes,git+https://github.com/pliron-org/pliron?rev=0d3f25df6d0e76b6c6f23d6e17172142b50c715c,3rd Party (git),https://github.com/pliron-org/pliron,LLVM Dialect for pliron,Proc-macro companion to pliron. Same git pin as pliron.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| once_cell,1.21.3,MIT OR Apache-2.0,Yes,registry+https://github.com/rust-lang/crates.io-index,3rd Party (crates.io),https://github.com/matklad/once_cell,Single assignment cells and lazy values., | ||
| pliron,0.12.0,Apache-2.0,Yes,registry+https://github.com/rust-lang/crates.io-index,3rd Party (crates.io),https://github.com/vaivaswatha/pliron,Programming Languages Intermediate RepresentatiON,"Primary dependency: MLIR-inspired IR framework. Custom MLIR dialects (MIR, LLVM, NVVM) built on this." | ||
| pliron-derive,0.12.0,Apache-2.0,Yes,registry+https://github.com/rust-lang/crates.io-index,3rd Party (crates.io),https://github.com/vaivaswatha/pliron,LLVM Dialect for pliron,Proc-macro companion to pliron. | ||
| pliron,0.16.0,Apache-2.0,Yes,git+https://github.com/pliron-org/pliron?rev=0d3f25df6d0e76b6c6f23d6e17172142b50c715c,3rd Party (git),https://github.com/pliron-org/pliron,Programming Languages Intermediate RepresentatiON,"Primary dependency: MLIR-inspired IR framework. Custom MLIR dialects (MIR, LLVM, NVVM) built on this. Pinned to a git revision; this version is not published to crates.io." |
`dependency-licenses.csv` recorded `pliron` and `pliron-derive` as 0.12.0 from crates.io. NVIDIA#593 moved them to 0.16.0 at git revision 0d3f25df and did not update the CSV; `pliron-llvm`, a third crate from the same pin, was never recorded at all. The upstream org also moved, so the listed repository URL (`github.com/vaivaswatha/pliron`) no longer matches either. CONTRIBUTING makes the file a contributor obligation ("If adding a new dependency, update `dependency-licenses.csv` accordingly"), but nothing reads it: $ grep -rn "dependency-licenses" .github/workflows/ Justfile scripts/ $ `cargo-deny` checks license policy against `deny.toml`; it does not verify this CSV against the dependency graph. So the drift was invisible. It matters more than an ordinary version bump because the source *kind* changed. A license-provenance file claiming a dependency came from crates.io at 0.12.0, when it is a pinned git revision of 0.16.0 under a different org, is wrong in the fields the file exists to record. These three are the only git dependencies in the lockfile -- every other row is a registry source -- so `3rd Party (git)` distinguishes them rather than overloading `3rd Party (crates.io)`. Version, source, and repository URL are taken from `Cargo.lock` and `cargo metadata`; all three crates remain Apache-2.0. The file uses CRLF endings, which this change preserves, so the diff is three lines. Deliberately not included: eight further direct dependencies have no row (`clap`, `futures`, `object`, `serde`, `serde_json`, `sha2`, `toml`, `trybuild`) and `libmathdx-sys` is listed but absent from the graph. The CSV already carries transitive packages, so its intended scope is broader than direct dependencies, and which omissions are deliberate curation is not something the file records. Noted on the issue for a maintainer decision rather than guessed at here. Fixes NVIDIA#630 Signed-off-by: Vyncint Ng <[email protected]>
vyncint
force-pushed
the
fix/license-csv-pliron-git-pin
branch
from
August 1, 2026 22:57
1838a4a to
de8377a
Compare
Contributor
Author
|
Kept the Description verbatim because that column copies each crate's upstream |
Collaborator
|
Verified, thanks for adding them cleanly |
nihalpasham
approved these changes
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #630.
dependency-licenses.csvrecordedplironandpliron-deriveas0.12.0 from crates.io. Since #593 they have been 0.16.0 at git revision
0d3f25df, andpliron-llvm— a third crate from the same pin — had no row atall.
Cargo.lockplironregistry+…crates.io-indexgit+…/pliron-org/pliron?rev=0d3f25df…pliron-deriveregistry+…crates.io-indexpliron-llvmThe repository URL was stale too: the CSV pointed at
github.com/vaivaswatha/pliron, while the crates now resolve togithub.com/pliron-org/pliron.Why it drifted
CONTRIBUTING makes the file an obligation — "If adding a new dependency, update
dependency-licenses.csvaccordingly" — but nothing reads it:cargo-denychecks license policy againstdeny.toml; it does not verify thisCSV against the dependency graph.
bead880(#593) changedCargo.tomlandCargo.lockand left the CSV alone, and the earlier pliron-llvm migration addedan
llvm-exportworkspace row but never apliron-llvmthird-party one.This is worse than an ordinary version bump because the source kind and the
upstream org both changed — a provenance file claiming crates.io at 0.12.0
for what is really a pinned git revision of 0.16.0 under a different org is wrong
in precisely the fields it exists to record.
Change
Three lines. Version, source, and repository URL come from
Cargo.lockandcargo metadata; all three crates remain Apache-2.0.These are the only git dependencies in the lockfile — every other row is a
registry source — so I used
3rd Party (git)for the Dependency Type rather thanoverloading
3rd Party (crates.io). Say the word if you would rather keep theexisting label and carry the distinction in Source alone.
Validation
No build and no GPU. Verified mechanically that all three rows now agree with
Cargo.lockon version and source:The file uses CRLF line endings. My first attempt normalised them to LF and
rewrote all 81 rows; this version preserves CRLF, so the diff is the three
intended lines and the CSV still parses to 81 rows.
Deliberately not included
Comparing the CSV against
cargo metadataalso shows eight direct dependenciesof workspace members with no row —
clap,futures,object,serde,serde_json,sha2,toml,trybuild— and one row,libmathdx-sys, that isnot in the dependency graph.
I left those alone. The CSV already carries transitive packages
(
aho-corasick,memchr,libc,bitflagsare transitive-only), so itsintended scope is clearly broader than direct dependencies, yet it holds 69
third-party rows against 137 non-workspace packages in the graph. Which omissions
are deliberate curation is not something the file records, and guessing would
either bloat it or silently drop entries you meant to keep. Happy to do that
sweep once you say what the scope should be — and to add a CI check that diffs
the CSV against
cargo metadata, which I would rather land after the scope issettled so it does not immediately fail on those eight.