Skip to content

feat(nushell): share pinned-version checks - #147

Merged
hakula139 merged 12 commits into
mainfrom
feat/shared-pin-checks
Nov 28, 2026
Merged

hakula139 merged 12 commits into
mainfrom
feat/shared-pin-checks

Conversation

@hakula139

@hakula139 hakula139 commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

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 with use 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 return null to mark the pin unknown without a second warning.

Verification

  • The Nushell suite passed, including the existing version-ordering cases, offline listing, custom classifications, mixed stale and unknown rows, empty results and groups, and Git root failure.
  • Differential fixture runs with the agents.nix and nixos-config registries preserved report order, stdout, and exit codes. The focused error fixtures verify the current diagnostic wording and indentation. Both live audits matched their baselines and exited 0. Both offline listings passed with network access denied.
  • nix develop -c run-hooks, commit hooks, and push hooks passed. nix flake check --all-systems passed, including evaluation for all supported systems. The dedicated macOS Nix checks passed for pin-check and nu-tooling-lib-dirs.

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 hakula139 added the enhancement New capability label Nov 28, 2026
@hakula139 hakula139 self-assigned this Nov 28, 2026
@hakula139
hakula139 merged commit aa235b5 into main Nov 28, 2026
3 checks passed
@hakula139
hakula139 deleted the feat/shared-pin-checks branch November 28, 2026 10:51
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant