Repository navigation
chore: sync dev with main - #1023
Merged
Merged
Conversation
…-rc1-validation-followups
…-validation-followups
Follow-ups found by the `1.1.0-rc1` validation run on #1014. All three were reported as minor/non-blocking; landing them on the release branch means `1.1.0` ships with them fixed, at the cost of re-cutting a candidate (`rc2`) and re-validating. Targets `release/1.1.0` (not `dev`) — these are release-branch fixes. They reach `dev` via the normal main→dev sync after promotion. ## Fixes ### #1015 — `install.sh` next-steps message was not mode-filtered A `direnv` deploy printed *"Open in VS Code — it will detect `.devcontainer/`"*, pointing at a directory the direnv scaffold never creates (and that `--prune-devcontainer` may have just deleted). The two-branch `if` only special-cased `bare`, so every non-bare mode fell through to the container message. Now a `case` over all validated modes: `direnv` → `direnv allow` (with `nix develop` as the hook-free fallback), `both` → both entrypoints, `bare`/`devcontainer` unchanged (byte-identical). Note the existing tests only exercised `--dry-run`, which exits *before* the next-steps block — so this message had no behavioural coverage at all. The new bats tests drive `install.sh` end-to-end with a stubbed `docker`. ### #1016 — scaffolded `workflow_call` workflows did not declare inherited secrets `release-core.yml` and `release-publish.yml` read `GHCR_PULL_TOKEN`, `RELEASE_APP_*` and `COMMIT_APP_*` while declaring only `token:`. **This was being actively suppressed.** The bats actionlint tests passed `-ignore 'property "(ghcr_pull_token|...)" is not defined'`, with a comment calling them false positives that actionlint "cannot see statically". That reasoning is wrong: a reusable workflow has a **closed** secrets set, so actionlint was correct and the suppression hid a real defect that every scaffolded consumer inherited as a dirty lint run. The `-ignore` is removed and replaced with a structural test asserting every referenced secret is declared. Callers use `secrets: inherit`, so no call-site change was needed. `required:` is set from real usage (`GHCR_PULL_TOKEN` false — it falls back to `github.token`; the App credentials true — they feed `create-github-app-token` with no fallback). Out of scope and untouched: `promote-release.yml`, `release.yml`, `sync-issues.yml`, `sync-main-to-dev.yml` are `workflow_dispatch`/`push`/`schedule`, where secrets are ambient and need no declaration. ### #1017 — dev-shell emitted two upstream rename warnings `nixfmt-rfc-style` → `nixfmt`, and home-manager's `programs.neovim.extraLuaConfig` → `initLua`. Both are pure aliases, verified rather than assumed: the `devShells.default` and `homeConfigurations.*.activationPackage` **derivation paths are byte-identical** before and after. No nixpkgs bump, no `flake.lock` change. Correction to the original report: it described the second warning as a `'system'` rename. Cold evaluation of every flake output found no such warning — it was the neovim option rename, paraphrased from memory. ## Verification - Full hook suite (`just precommit`) green. - `bats tests/bats/install.bats` — 94 passed. - `bats tests/bats/init-workspace.bats` — 159 passed, 0 failures. - `nix flake check` — all checks passed; `nix develop` enters warning-free. - The 9 `tests/bats/githooks.bats` failures on a host checkout are **pre-existing** — they reproduce identically on untouched `4ec4e4a` and are host-vs-container environment guards. Refs: #1015, #1016, #1017
The shared consumer overlay (overlays.default) read the renamed-away final.system, so a scaffolded consumer's nix develop still emitted the 'system' has been renamed eval warning that #1017 cleared from the devkit's own dev-shell. Pure alias: the resolved fast-mover derivations are byte-identical. Refs: #1021
## Summary Follow-up to #1017. The `'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'` nixpkgs eval warning was cleared from the devkit's **own** dev-shell, but survived for a **scaffolded consumer's** `nix develop`. The residual was the shared consumer overlay (`vigos.overlays.default`), the one code path #1017 never exercised: it reads `final.system` inside the fixpoint, so any consumer that applies the overlay and forces a fast-mover package (`uv`, `gh`, `claude-code`) evaluates the renamed-away attribute and gets the warning. The devkit itself takes the hoisted `importUnstable system` path with a concrete system, which is why it looked fully fixed. `flake.nix:119` now reads `final.stdenv.hostPlatform.system` — the idiom already used at `flake.nix:314`. ## Verification Evaluated the consumer path directly (plain nixpkgs + `overlays.default`, forcing `claude-code`, exactly as `mkProjectShell` does), with and without the fix: | | eval output | |---|---| | before | `evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'` | | after | *(no warning)* | Both resolve to the **same** derivation, `/nix/store/h09svv06fs1qx8argj6mz7lz7mzwsqn8-claude-code-2.1.206.drv` — a pure alias, no rebuild, no behaviour change. The devkit's own dev-shell stays clean: `nix eval .#devShells.x86_64-linux.default.drvPath` emits no warning. Full local hook suite (`just precommit`) green. No test commit: a Nix attribute rename has no unit-testable surface, so the before/after eval above is the evidence — same approach as #1017. ## Acceptance criteria - [x] A scaffolded consumer's `nix develop` emits no `'system' has been renamed` warning. - [x] Devkit's own dev-shell remains clean. Refs: #1021
Set release date to 2026-07-13 and regenerate release docs. Refs: #1014
# [Release 1.1.0](https://github.com/vig-os/devkit/releases/tag/1.1.0) - 2026-07-13 This PR prepares release 1.1.0 for merge to main. ## [1.1.0](https://github.com/vig-os/devkit/releases/tag/1.1.0) - 2026-07-13 ### Added - **`actionlint` GitHub Actions workflow linter adopted** ([#995](#995)) - `actionlint` joins the vigOS toolchain (dev-shell, image, and `vigos.packages` home module), so it is available in every consumer environment. - The devkit lints its own `.github/workflows/` through a pre-commit hook, and its bats suite runs `actionlint` over the per-mode scaffold output (devcontainer, direnv, bare, both) plus the smoke-test template — a semantically broken rendered workflow now fails in the devkit instead of silently in a consumer repo. - **Opt-in `--prune-devcontainer` for container → direnv/bare migrations** ([#990](#990)) - Switching a container repo to `direnv`/`bare` keeps a populated pre-existing `.devcontainer/` by default (non-destructive, [#738](#738)). On a real migration that strands the stale container next to the new flake, so `install.sh` / `init-workspace.sh` now accept `--prune-devcontainer` to remove it. The flag is rejected in `devcontainer`/`both` modes; `--preview` lists the `.devcontainer/` under `DELETED` when it is set; and interactive runs prompt once (`Prune existing .devcontainer/? (y/N)`, default No) when a populated pre-existing `.devcontainer/` is detected in a container-less mode. `docs/MIGRATION.md` documents the preview-then-apply cleanup runbook. - **Mode-aware toolchain composite actions** ([#994](#994)) - New scaffolded `resolve-toolchain` composite action (evolves `resolve-image`): reads `.vig-os` and emits `mode`, `image`, and `image-tag`. Container-ish modes (`devcontainer`/`both`) get the `ghcr.io/vig-os/devcontainer` image and keep the `docker manifest inspect` accessibility probe; the host modes (`direnv`/`bare`) get an explicit empty `image` so the downstream job runs on the host runner (Option A, `docs/rfcs/ADR-conditional-container-toolchain.md`). - New scaffolded `setup-devkit-toolchain` composite action: the single step-level toolchain preamble for every mode. Branches on `DEVKIT_MODE` — in-container jobs export the image-relative env (`UV_PROJECT_ENVIRONMENT`, `PREK_HOME`) + `safe.directory` fix; `direnv` provisions the repo flake dev-shell via Nix + Cachix; `bare` installs the pinned toolchain (`just`, `prek`, `vig-utils`) with `uv`. Both host modes install a self-contained `retry` shim. Preserves the per-mode `prek` version-skew guards (#854). - **`vig-utils` console scripts available in the dev-shell** ([#993](#993)) - `prepare-changelog`, `renovate-changelog-pr`, and the other `packages/vig-utils` console scripts are now on the toolchain SSoT (`nix/devtools.nix`), so every `nix develop` shell — the devkit's own and any consumer `mkProjectShell` (direnv mode) — exposes them on PATH, matching the image. This unblocks mode-aware release workflows for the container-less modes. - Bare mode (no flake) gets a documented, version-pinned host-native install path: `uv tool install "vig-utils @ git+https://github.com/vig-os/devkit@<DEVKIT_VERSION>#subdirectory=packages/vig-utils"` (see `docs/MIGRATION.md`). ### Changed - **Single mode-aware `ci.yml` replaces the per-mode overlays** ([#991](#991)) - The container-based `ci.yml` and the separate `direnv`/`bare` overlay variants collapse into one managed workflow. A leading `resolve-toolchain` job resolves `DEVKIT_MODE` + image from `.vig-os`; every job runs `container: image: ${{ needs.resolve-toolchain.outputs.image }}` (empty ⇒ host runner, per the Option A ADR) and calls the `setup-devkit-toolchain` composite to provision its toolchain, so `just sync|precommit|test` runs identically in every mode. The `assets/workspace-direnv/` and `assets/workspace-bare/` overlay trees and their `init-workspace.sh` deployment blocks are removed. - **Mode-aware release & automation workflows** ([#991](#991)) - The scaffolded release/automation set (`release.yml` + reusable `release-core.yml` / `release-publish.yml`, `prepare-release.yml`, `promote-release.yml`, `sync-main-to-dev.yml`, `renovate-changelog-build.yml`, `sync-issues.yml`) is converted off the container-only `resolve-image` job onto the mode-aware pattern: a leading `resolve-toolchain` job (used inline in `prepare-release.yml`'s host `validate` job) selects the image — empty in the `direnv`/`bare` modes so jobs run on the runner (ADR Option A) — and every job runs the `setup-devkit-toolchain` composite as its toolchain preamble. A `direnv`/`bare` consumer no longer needs to delete or disable these workflows. - The orchestrator resolves the toolchain **once** and threads it into the reusable workflows via new `toolchain_mode` / `toolchain_image` / `devkit_version` `workflow_call` inputs; `release-core.yml` / `release-publish.yml` no longer run their own resolve jobs. Release choreography (step logic, ordering, inputs/outputs, rollback semantics) is unchanged. - **Renovate: update `cachix/install-nix-action` from `v31.10.6` to `v31.10.7`** ([#984](#984)) - **`actionlint` shellcheck integration re-enabled; workflow `run:` blocks hardened** ([#1003](#1003)) - The bundled `shellcheck` pass that #995 deferred is now active in both the devkit's own `actionlint` pre-commit hook and the bats fixtures that lint the per-mode scaffold output. The scaffolded template workflows shipped to consumers had their `run:` blocks hardened to pass it — quoting redirect targets and shell variables, grouping consecutive `>> "$GITHUB_OUTPUT"` writes, and quoting pattern expansions — so a consumer's rendered workflows now lint clean under `actionlint`'s shellcheck. A handful of intentional patterns (literal Markdown backticks, whitelist substring matches, deliberate word-splitting) carry justified `# shellcheck disable` directives. ### Fixed - **`install.sh` next-steps message is mode-aware** ([#1015](#1015)) - A `direnv` deploy printed *"Open in VS Code — it will detect `.devcontainer/`"*, pointing at a directory the direnv scaffold never creates (and that `--prune-devcontainer` may have just removed). The message now branches over every validated mode: `direnv` points at `direnv allow` (with `nix develop` as the hook-free fallback), `both` offers each entrypoint, and `bare`/`devcontainer` are unchanged. - **Scaffolded `workflow_call` workflows declare the secrets they inherit** ([#1016](#1016)) - `release-core.yml` and `release-publish.yml` read `GHCR_PULL_TOKEN`, `RELEASE_APP_*` and `COMMIT_APP_*` without declaring them in their `workflow_call: secrets:` block. A reusable workflow has a *closed* secrets set, so `actionlint` correctly reported each one as undefined and every scaffolded consumer inherited a dirty lint run. The secrets are now declared (`required:` set from real usage), and the bats suite no longer suppresses the diagnostic — it asserts that every referenced secret is declared. - **Dev-shell entry is warning-free** ([#1017](#1017)) - `nix develop` emitted two upstream rename warnings (`nixfmt-rfc-style` → `nixfmt`, and home-manager's `programs.neovim.extraLuaConfig` → `initLua`). Both are pure aliases: the dev-shell and home-manager activation derivations are byte-identical before and after. - **A scaffolded consumer's `nix develop` is warning-free too** ([#1021](#1021)) - The shared consumer overlay (`vigos.overlays.default`) still read the renamed-away `final.system`, so every consumer that applied it and forced a fast-mover package saw the `'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'` warning that [#1017](#1017) had already cleared from the devkit's own dev-shell. The overlay now reads `final.stdenv.hostPlatform.system`; the resolved derivations are unchanged. - **Scaffolded flake stub references the renamed `github:vig-os/devkit` input** ([#1009](#1009)) - The preserved `assets/workspace/flake.nix` stub (active input and pin-example comment) still pointed at `github:vig-os/devcontainer`, which only resolved via GitHub's post-rename redirect; new consumers now scaffold the canonical `github:vig-os/devkit`. `docs/MIGRATION.md` documents the by-hand update for existing `direnv`/`both` consumers, whose stub is never overwritten on upgrade. - **direnv/bare scaffolds no longer ship container-only artifacts** ([#989](#989)) - `docs/container-ci-quirks.md` (in-image CI notes) is now mode-filtered like `.devcontainer/`: excluded from container-less scaffolds, pruned from a previously scaffolded tree on upgrade, and reflected truthfully in the `--preview` report. The `resolve-image` action and `container:` workflow coupling were already retired by the mode-aware toolchain work ([#991](#991)). - The devkit's own `.vig-os` now declares its delivery mode (`direnv`). - **Pin `sigstore/cosign-installer` to `v4.1.2` so Renovate can resolve its digest** ([#986](#986)) - The previous pin's `# v4` comment named a floating tag that `sigstore/cosign-installer` never published, so Renovate's digest lookup failed on the dependency dashboard
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.
Syncs
devwithmain(sync-main-to-dev workflow).