Skip to content

feat(nix): expose vig-utils console scripts in the dev-shell - #999

Merged
c-vigo merged 3 commits into
feature/988-mode-aware-scaffoldfrom
feature/993-vig-utils-host-side
Jul 13, 2026
Merged

c-vigo merged 3 commits into
feature/988-mode-aware-scaffoldfrom
feature/993-vig-utils-host-side

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What

Expose the packages/vig-utils console scripts (prepare-changelog,
renovate-changelog-pr, and siblings) host-side:

  • Dev-shell (direnv mode): vig-utils is now on the vigOS overlay
    (pkgs.vig-utils) and in the devTools SSoT (nix/devtools.nix), so every
    nix develop shell — the devkit's own and any consumer mkProjectShell —
    exposes the scripts on PATH, matching the image. Defined once on the overlay
    (vigUtilsOverlay) and reused by pythonEnv/the hook check (no duplicate
    builder). lowPrio in devTools yields to pythonEnv's identical scripts in
    the image buildEnv, mirroring the wrapped-neovim collision guard.
  • Bare mode (no flake): documented, version-pinned host-native install path
    in docs/MIGRATION.md, consumed later by the Shared setup-devkit-toolchain composite action (mode-aware step-level provisioning) #994 setup-devkit-toolchain
    composite.

Why

prepare-changelog / renovate-changelog-pr are invoked bare by the scaffolded
release workflows but were only in the image, not devTools — blocking
mode-aware release workflows (#991) for container-less modes. Part of #988.

Evidence (local — PRs into the epic branch get no automated CI)

Devkit's own dev-shell:

$ nix develop --ignore-environment --keep HOME -c command -v prepare-changelog renovate-changelog-pr vig-utils
/nix/store/…-python3.14-vig-utils-0.1.0/bin/prepare-changelog
/nix/store/…-python3.14-vig-utils-0.1.0/bin/renovate-changelog-pr
/nix/store/…-python3.14-vig-utils-0.1.0/bin/vig-utils

Consumer mkProjectShell (downstream stub, vigos overridden to this branch):

$ nix develop path:assets/workspace --override-input vigos path:. -c command -v prepare-changelog renovate-changelog-pr
/nix/store/…-python3.14-vig-utils-0.1.0/bin/prepare-changelog
/nix/store/…-python3.14-vig-utils-0.1.0/bin/renovate-changelog-pr

Tests:

  • tests/test_flake_devshell.py::test_devshell_exposes_vig_utils_console_scripts[prepare-changelog|renovate-changelog-pr] — new, RED→GREEN.
  • test_each_tool_runs_in_devshell (vig-utils added to VERSION_FLAG_OVERRIDES) and test_downstream_flake.py — pass.
  • nix build .#devkitImage — succeeds (no buildEnv collision; lowPrio resolves it).
  • prek run --all-files — green.

Verified bare-mode install command (tested locally from both the local path and the git subdirectory):

uv tool install "vig-utils @ git+https://github.com/vig-os/devkit@<DEVKIT_VERSION>#subdirectory=packages/vig-utils"

Follow-up for #994

The composite runs the bare-mode uv tool install above; pin <DEVKIT_VERSION>
to the release tag from .vig-os so the host toolchain matches the pin.

Refs: #993

c-vigo added 3 commits July 13, 2026 09:24
Add a parity test asserting prepare-changelog and renovate-changelog-pr
are on the dev-shell's own PATH (nix develop --ignore-environment), the
gap that blocks mode-aware release workflows for container-less modes.

Refs: #993
Expose packages/vig-utils on the vigos overlay (pkgs.vig-utils) and add it
to the devTools SSoT, so prepare-changelog, renovate-changelog-pr, and the
other console scripts reach every nix develop shell — the devkit's own and
any consumer mkProjectShell (direnv mode) — matching the image. Defined once
on the overlay and reused by pythonEnv/the hook check (no duplicate builder).
lowPrio in devTools yields to pythonEnv's identical scripts in the image
buildEnv, mirroring the wrapped-neovim collision guard.

Refs: #993
Add the version-pinned host-native install command for bare mode
(uv tool install vig-utils @ git+.../devkit@<DEVKIT_VERSION>#subdirectory=...),
consumed later by the setup-devkit-toolchain composite (#994).

Refs: #993
@c-vigo
c-vigo merged commit 94787b3 into feature/988-mode-aware-scaffold Jul 13, 2026
2 checks passed
@c-vigo
c-vigo deleted the feature/993-vig-utils-host-side branch July 13, 2026 07:33
c-vigo added a commit that referenced this pull request Jul 13, 2026
…997)

One release choreography, mode-aware toolchain provisioning: resolve-toolchain + setup-devkit-toolchain composites (ADR Option A), single mode-aware ci.yml, all release/automation workflows container-free in direnv/bare, opt-in .devcontainer/ prune, vig-utils host-side, actionlint. Sub-PRs: #998 #999 #1000 #1001 #1002 #1005 #1006 #1007.

Refs: #988
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant