canibump

Tells you which of your patches, pins and workarounds can go, because upstream finally landed what they wait on.

canibump.toml
#:schema https://raw.githubusercontent.com/mlavrinenko/canibump/main/schema/canibump.schema.json

[[blocker]]
id = "libfoo-crash"
note = "drop the libfoo crash patch"
state = "github:libfoo/libfoo#412"

[scan]
paths = ["**/*.nix"]
terminal
$ canibump
waiting   libfoo-crash  github:libfoo/libfoo#412 is open
$ canibump --refresh
bumpable  libfoo-crash  github:libfoo/libfoo#412 merged (drop the libfoo crash patch)
          at pkgs/libfoo.nix:4

Why

Every repo grows a few patches, pins and overrides that wait on someone else. A bug fix to merge, a release to ship, a package to reach nixpkgs. You mean to drop each one once upstream lands, but nobody checks, so they stick around for years.

Write each one down in canibump.toml once, as a blocker. A run asks upstream where things stand and tells you which ones can go, and where they sit in your files.

What a blocker waits on

Waits forRead
An issue fixed, a PR or MR mergedWait for an issue or PR
A commit in a branch, a tag or a releaseWait for a fix to ship
A package at some version in a distro or registryWait for a package
All of the above, in orderChain the steps

Statuses

Each blocker gets one line, and the first word says what to do.

StatusMeans
waitingUpstream isn’t there yet. Nothing to do.
bumpableIt landed. Go drop the workaround.
deadClosed unmerged, won’t fix or a duplicate. Rethink the workaround.
failedThe check broke, say on the network or a rate limit. It never counts as landed.
unlistedA link or marker in your files that no blocker names.
unmarkedA blocker that nothing in your files places, so its workaround may be gone.

Every status but waiting makes the run exit non-zero, so a cron job or CI can nag you. Run it in CI has the codes.