Repository navigation
feat(nushell): share pinned-version checks - #147
Merged
Merged
Conversation
Expose a static module for grouped pin audits so repositories can use the same reporting, version ordering, and GitHub lookups with their own registries. Keep list available offline and report incomplete checks ahead of stale pins.
hakula139
added a commit
that referenced
this pull request
Nov 28, 2026
## Summary Prepare v3.9.0 with a changelog entry for the shared Nushell pin-check module (#147). Consumers can load it from the locked devkit input to list pins offline and audit their own registries. ## Verification - `nix run .#changelog -- v3.9.0` generated the draft for curation. - `nix develop -c run-hooks`, commit hooks, and push hooks passed. - `nix flake check --all-systems` evaluated all supported systems and passed the local checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The module lives at
lib/pin-check/mod.nu. Add"${devkit}/lib"from the locked devkit input to the Nushell module search paths and import it withuse pin-check. The module lists consumer-owned registries offline and checks them with shared GitHub lookups, source extraction, version ordering, and grouped reporting. Classifiers can set the displayed status and the outcome separately. Checks exit 0 for current pins, 1 for stale pins, and 2 for an incomplete audit.Warnings start at column one on stderr. GitHub API failures report the pin and the GitHub CLI error in a single warning. A blank lookup reports
no value found. A lookup that already diagnosed the failure can returnnullto mark the pin unknown without a second warning.Verification
nix develop -c run-hooks, commit hooks, and push hooks passed.nix flake check --all-systemspassed, including evaluation for all supported systems. The dedicated macOS Nix checks passed forpin-checkandnu-tooling-lib-dirs.