Mark where each workaround sits
Put a canibump:<id> comment next to each workaround, and a bumpable line tells you which files to open.
A note like “see line 12 of gpu.nix” rots the first time someone edits above it. A marker moves with the code. Write canibump:<id> in a comment next to the workaround, and the why and the exit plan stay in the manifest, once.
canibump.toml[[blocker]]
id = "libfoo-crash"
note = "drop the libfoo crash patch"
state = "github:libfoo/libfoo#412"
[[blocker]]
id = "left-pad-pin"
note = "unpin left-pad"
state = "github:left-pad/left-pad#42"
sites = [{ file = "package.json", pattern = '"left-pad": "=1\.3\.0"' }]
[[blocker]]
id = "libbar-arm64"
note = "unpin libbar on arm64"
state = "gitlab:libbar/libbar!88"
[scan]
paths = ["**/*.nix"]hosts/gpu.nix{ pkgs, ... }:
{
environment.systemPackages = [
# canibump:libfoo-crash the patched build, until upstream ships the fix
(pkgs.callPackage ../pkgs/libfoo.nix { })
];
}$ canibump
bumpable libfoo-crash github:libfoo/libfoo#412 merged (drop the libfoo crash patch)
at hosts/gpu.nix:5, pkgs/libfoo.nix:4
waiting left-pad-pin github:left-pad/left-pad#42 is open
waiting libbar-arm64 gitlab:libbar/libbar!88 is open
unmarked libbar-arm64 no canibump:libbar-arm64 in the scanned fileslibfoo-crash sits in two files, so both show up. libbar-arm64 has no marker anywhere, so it gets an unmarked line.
Markers
- canibump finds markers in the files
[scan]lists. Catch forgotten workarounds covers what it reads. - One blocker can sit in many places, so mark each one.
- An id takes ASCII letters, digits,
_and-. Socanibump: foowith a space,canibump::pathandxcanibump:foomark nothing. - A marker that names no blocker prints as
unlisted.
Which lines show their sites
A check prints the sites under bumpable and dead lines, the ones you act on. canibump status prints them under every line, and so does canibump status <id> for its one blocker.
$ canibump status left-pad-pin
waiting left-pad-pin github:left-pad/left-pad#42 is open
at package.json:4[settings] sites-on picks the statuses for every run, and --sites-on overrides it for one.
Files that take no comment
JSON has no comments, so a pin in package.json can’t carry a marker. Give the blocker sites instead, a file relative to the manifest and a regex run over each line. That’s left-pad-pin above.
package.json{
"name": "dashboard",
"dependencies": {
"left-pad": "=1.3.0",
"react": "^19.1.0"
}
}Every matching line is a site. Declared sites are read with or without [scan], and a blocker that declares any needs no marker. Once the pin goes, so does the match, and the blocker turns unmarked. A bad regex fails the manifest and names the blocker.
Unmarked blockers
A blocker nothing places is one whose workaround may be gone already, or lives in a file paths misses. Either way you see an unmarked line, and the run exits non-zero. Mark the workaround, widen paths, or drop the blocker. To let it pass, leave unmarked out of fail-on.