Skip to content

docs: record the pliron git pin in dependency-licenses.csv - #631

Merged
nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:fix/license-csv-pliron-git-pin
Aug 2, 2026
Merged

nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:fix/license-csv-pliron-git-pin

Conversation

@vyncint

@vyncint vyncint commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #630. dependency-licenses.csv recorded pliron and pliron-derive as
0.12.0 from crates.io. Since #593 they have been 0.16.0 at git revision
0d3f25df
, and pliron-llvm — a third crate from the same pin — had no row at
all.

package CSV before Cargo.lock
pliron 0.12.0, registry+…crates.io-index 0.16.0, git+…/pliron-org/pliron?rev=0d3f25df…
pliron-derive 0.12.0, registry+…crates.io-index 0.16.0, same git rev
pliron-llvm absent 0.16.0, same git rev

The repository URL was stale too: the CSV pointed at
github.com/vaivaswatha/pliron, while the crates now resolve to
github.com/pliron-org/pliron.

Why it drifted

CONTRIBUTING makes the file an 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. bead880 (#593) changed Cargo.toml and
Cargo.lock and left the CSV alone, and the earlier pliron-llvm migration added
an llvm-export workspace row but never a pliron-llvm third-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.lock and
cargo 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 than
overloading 3rd Party (crates.io). Say the word if you would rather keep the
existing label and carry the distinction in Source alone.

Validation

No build and no GPU. Verified mechanically that all three rows now agree with
Cargo.lock on version and source:

pliron         0.16.0   OK
pliron-derive  0.16.0   OK
pliron-llvm    0.16.0   OK

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 metadata also shows eight direct dependencies
of workspace members with no row — clap, futures, object, serde,
serde_json, sha2, toml, trybuild — and one row, libmathdx-sys, that is
not in the dependency graph.

I left those alone. The CSV already carries transitive packages
(aho-corasick, memchr, libc, bitflags are transitive-only), so its
intended 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 is
settled so it does not immediately fail on those eight.

Copilot AI review requested due to automatic review settings August 1, 2026 22:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 pliron and pliron-derive entries to 0.16.0 and a pinned git source under pliron-org/pliron.
  • Add the missing pliron-llvm entry 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.

Comment thread dependency-licenses.csv
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
vyncint force-pushed the fix/license-csv-pliron-git-pin branch from 1838a4a to de8377a Compare August 1, 2026 22:57
@vyncint

vyncint commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Kept the Description verbatim because that column copies each crate's upstream description (all 70 third-party rows do, and pliron-derive's upstream text really is LLVM Dialect for pliron), and instead recorded in Notes that upstream's wording is inaccurate for this proc-macro crate.

@nihalpasham nihalpasham added documentation Improvements or additions to documentation build-related Build scripts, toolchain discovery, or compilation setup labels Aug 2, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Verified, thanks for adding them cleanly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-related Build scripts, toolchain discovery, or compilation setup documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dependency-licenses.csv still records pliron as 0.12.0 from crates.io, and omits pliron-llvm

3 participants