Skip to main content

Module pin

Module pin 

Source
Expand description

The pin each manager records, read and rewritten in its own form.

flake input      github:<owner>/<repo>/<tag> in flake.nix, locked in flake.lock
mise, registry   "cargo:<crate>" = "<version>"
mise, release    "ubi:<owner>/<repo>" = { version = "<version>", exe = "<binary>" }
asdf             <tool> <version>, one line in .tool-versions
devbox           "github:<owner>/<repo>/<tag>#<output>", one entry in packages

A registry entry names the crate as the registry knows it, and an archive entry names the binary inside the archive. The reader below accepts each form where its manager writes it and nowhere else.

Structs§

Pin
One recorded pin, located in its file.

Functions§

input_name
The name of the flake input whose URL names this tool.
locked_rev
The revision flake.lock holds for this tool’s input, where it holds one.
read
The pin a manager file records for this tool, where it records one.
rewrite
The same file text with the pin moved to to, in the spelling the file already uses.