Skip to content

deps: collect the library dependency graph into deps.json - #12

Merged
burinc merged 3 commits into
jlt-commons:mainfrom
yogthos:deps-graph
Nov 20, 2026
Merged

burinc merged 3 commits into
jlt-commons:mainfrom
yogthos:deps-graph

Conversation

@yogthos

@yogthos yogthos commented Nov 20, 2026

Copy link
Copy Markdown
Member

Adds fleet:deps. It maps which library pins which across every public jlt-commons and jolt-lang repository. When a library gets a new tag, it shows everything that has to follow it and in what order. If B pins A and C pins B, a new A means B moves its pin and retags, then C moves to the new B. Libraries are grouped in waves that can each be released together. A library that pins two libraries from the graph waits for the later one.

It reads each repo's root deps.edn, tags and default branch head with one GraphQL query per 25 repos, which takes about 16 seconds for both orgs. Each pin is marked current, behind or unknown against the library's latest semver tag, or its head if it has none. A bare sha on a tagged library that matches no tag is checked with the compare API, because it can sit after the last release. Each pin also records its dependency symbol and its path in deps.edn, so an update tool can rewrite exactly that coordinate. The README documents the fields.

A new deps workflow runs hourly and commits deps.json to the status branch next to status.json. publish! now takes the file list it commits, so the canary and this job leave each other's files alone. The workflow token is enough here, since everything read is public.

The site reads the file in jlt-commons/jlt-commons.github.io#6 and serves it at https://jlt-commons.github.io/fleet/deps.json. Once this is merged, run gh workflow run deps.yml --repo jlt-commons/ci-builds to produce the first copy.

Tests: jolt test (239 pass).

fleet:deps reads the root deps.edn, tags and default branch head of every
public jlt-commons and jolt-lang repository in one GraphQL query per page,
and records which library pins which, whether each pin is on the latest
release, and for each library the waves its dependents have to be retagged
in. A new deps workflow publishes it hourly to the status branch next to
status.json. publish! now takes the file set it commits, so the two jobs
leave each other's files alone.
…anch

An updater needs to find the coordinate it is rewriting, so every pin keeps
its dependency symbol and the keys leading to it in deps.edn.
@burinc
burinc merged commit db0e9f0 into jlt-commons:main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants