Skip to content

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

Closed

Description

@vyncint

Summary

dependency-licenses.csv records pliron and pliron-derive as 0.12.0 from
crates.io
. Cargo.lock has had them at 0.16.0 from a git revision since
#593, and pliron-llvm — a third dependency from the same pin — has no entry at
all. Nothing in CI compares the two files, so the drift is invisible.

CONTRIBUTING makes this file a contributor obligation:

If adding a new dependency, update dependency-licenses.csv accordingly.

The drift

package CSV Cargo.lock
pliron 0.12.0, registry+…crates.io-index 0.16.0, git+https://github.com/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 recorded repository URL is also stale: the CSV points at
github.com/vaivaswatha/pliron, while the crates now resolve to
github.com/pliron-org/pliron.

bead880 (#593, "deps: bump pliron to master 0d3f25df") changed Cargo.toml and
Cargo.lock but not dependency-licenses.csv. The earlier pliron-llvm
migration added an llvm-export workspace row and never a pliron-llvm
third-party one.

This matters more than a normal version bump because both the source kind and
the upstream org changed. A license-provenance file that says a dependency
came from crates.io at 0.12.0, when it is actually a pinned git revision of
0.16.0 from a different org, is wrong in exactly the fields it exists to record.
These are the only three git dependencies in the lockfile; every other CSV row is
a registry source.

Why nothing caught it

No workflow or script reads dependency-licenses.csv:

$ grep -rn "dependency-licenses" .github/workflows/ Justfile scripts/
$

cargo-deny checks license policy against deny.toml; it does not verify that
this CSV matches the dependency graph. So the file can only be kept current by
remembering, and #593 did not.

Wider gap, reported separately from the fix

Comparing the CSV against cargo metadata, eight further direct dependencies of
workspace members have no row: clap, futures, object, serde,
serde_json, sha2, toml, trybuild. One row, libmathdx-sys, is not in the
dependency graph at all.

I have not touched those. The CSV already contains transitive packages
(aho-corasick, memchr, libc, bitflags are all transitive-only), so the
intended scope is evidently broader than direct dependencies — but it covers 69
third-party rows against 137 non-workspace packages in the graph, and I cannot
tell from the file which omissions are deliberate curation. That is a call for
you; happy to do the sweep once you say what the scope should be.

Proposed fix

Correct the two pliron rows and add the missing pliron-llvm row, with
version, source, and repository URL taken from Cargo.lock and cargo metadata.
All three are Apache-2.0, unchanged.

Worth considering separately: a small check that diffs the CSV against
cargo metadata in CI, so this cannot drift silently again. I would rather agree
the scope first than add a check that immediately fails on the eight rows above.

Acceptance criteria

  • The three pliron* rows match Cargo.lock in version and source
  • pliron-llvm is recorded
  • Repository URLs point at the current upstream org
  • No GPU and no build required to verify

Activity

  1. added a commit that references this issue on Aug 1, 2026
    de8377a
  2. added
    documentation
    build-related
    on Aug 2, 2026
  3. added a commit that references this issue on Aug 2, 2026
    60776c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-relateddocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions