Repository navigation
build(devkit): adopt vigOS devkit 1.3.0 in direnv mode - #108
Merged
Merged
Conversation
Replace the bespoke CI/release stack with the devkit 1.3.0 scaffold:
- install.sh --version 1.3.0 --mode direnv --prune-devcontainer; declare
DEVKIT_TAG_PREFIX=v and DEVKIT_FLOATING_TAGS=major,minor day one
- Nix flake dev-shell with nodejs; flake-generated pre-commit hooks
(hooks = { }, hooksExcludes ^dist/) replace the committed config whose
typos hook could not run on NixOS
- keep the 8-scenario integration-test matrix; wire it to PRs
(integration-pr.yml) and to pushed tags (published-tag-smoke.yml)
- re-home provenance attestation in attest-release.yml: the managed
release.yml calls the extension seam under a contents:read token
ceiling, so id-token:write cannot live there
- re-purpose release-extension.yml as the dist freshness backstop
(floating tags now move natively at promote); port dist-check.yml and
js-quality.yml gates from commit-action
- hand-patch codeql.yml push paths to TS (upstream: vig-os/devkit#1142)
- retire security-scan.yml placeholder, CODEOWNERS, bespoke
changelog/release helpers, resolve-image composite, setup-node.sh
Refs: #106
15 tasks done
c-vigo
added a commit
that referenced
this pull request
Jul 16, 2026
## Upgrade the action runtime to node24 Locked follow-up to the devkit migration (#106 → PR #108): switch `runs.using` from `node20` to `node24` ahead of GitHub's forced default on June 2, 2026 ([changelog](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/)). ### What changed - `action.yml`: `runs.using: node20` → `node24` - `.nvmrc`: 20 → 24 (informational since the devkit migration — node comes from the flake dev-shell, already 24.16) - Changelog entry under Unreleased / Changed Only live `node20` reference in the repo was `action.yml`; `docs/issues/`/`docs/pull-requests/` mirrors are generated and untouched. Dependencies were already node24-compatible (toolkit bumps landed on dev; @types/node ^25). ### Verification - 115 jest tests green on node v24.16.0 (flake dev-shell) - `just bundle` → dist/ clean (bundle unchanged, as expected for a metadata-only change) - Full prek suite green - The 9-scenario integration matrix on this PR executes the bundled action under the node24 runtime — the real runtime test Refs: #77
This was referenced Jul 16, 2026
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Jul 16, 2026
…e lines (#1146) ## Summary The #1111 gitignore migration (`migrate_root_gitignore()` in `assets/init-workspace.sh`) copied consumer lines from the old root `.gitignore` into `.gitignore.project` with two defects, both observed live on the sync-issues-action 1.3.0 deploy (field report: vig-os/sync-issues-action#106, PR vig-os/sync-issues-action#108): 1. **It migrated entries that shadow scaffold-COMMITTED files.** The old Python-template `.gitignore` shipped `.envrc`; in direnv mode `.envrc` is scaffold-committed for nix-direnv onboarding (#640). Because `.gitignore.project` is appended to the regenerated root `.gitignore` (#1092), the migrated entry silently kept the scaffolded `.envrc` untracked and broke direnv onboarding on every clone. 2. **It migrated stale devkit language-template junk as if consumer-authored.** The `managed` set was built from the template base plus the DETECTED languages' fragments only, so a repo that switched language templates (old Python-flavored managed `.gitignore`, now a Node repo) got ~90 lines of `__pycache__/`/`.tox/`-style template material dumped into its consumer-owned file. ## Fix (two never-migrate rules) - **Rule 1 — scaffold-committed denylist:** entries whose pattern equals a file the scaffold itself commits never migrate: `.envrc`, `.gitignore.project`, `flake.nix`, `flake.lock`, `justfile`, `justfile.project`, `.vig-os`. These are literal file names, not glob patterns, so a plain literal line match suffices (commented in the code). - **Rule 2 — filter against ALL fragments:** the `managed` set now iterates every `gitignore.d/*.gitignore` fragment instead of only the detected languages'. The OLD root `.gitignore` was a devkit-managed template for whatever language set applied back then, so any line found in ANY devkit fragment is template material, never consumer-authored. Order, dedup, idempotency, and append-only behavior are unchanged; the function's header comment documents both rules. ## Test evidence (strict TDD) - RED: two new bats tests (`tests/bats/init-workspace.bats`, #1145 section) failed on the pre-fix code exactly at the leak assertions (`.envrc` and `__pycache__/` found in `.gitignore.project`), committed first. - GREEN: both #1145 tests pass post-fix; `.envrc` also verified untracked via `git check-ignore`. - No regression: the full `tests/bats/init-workspace.bats` file passes — 208/208 tests, including all #1111 / #1092 / #1117 gitignore tests. - `prek run --all-files`: all hooks green. ## Notes Closes #1145 Note: `Closes #N` does not auto-close on dev-targeted merges in this repo (main-only) — close #1145 manually on merge. Refs: #1145
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.
Adopt vigOS devkit 1.3.0 (direnv) — replace the bespoke CI/release stack
Second consumer of the mode-aware devkit, following the commit-action pilot (vig-os/commit-action#32). Deployed off
devwith the releasedinstall.sh --version 1.3.0 --mode direnv --prune-devcontainer.What changed
pkgs.nodejs),.envrc, managed workflows/justfiles at 1.3.0; legacy.devcontainer/pruned. Tag scheme declared day one:DEVKIT_TAG_PREFIX=v,DEVKIT_FLOATING_TAGS=major,minor.hooks = { },hooksExcludes = ["^dist/"]): replaces the committed.pre-commit-config.yamlwhose binarytyposhook could not run on NixOS.scripts/setup-node.sh+.node/provisioning retired — node flows from the flake.integration-test.ymlmatrix kept, wired to PRs viaintegration-pr.ymland to pushed tags viapublished-tag-smoke.yml(runs the action checked out AT the tag — consumer semantics).attest-release.yml(tag push).release-extension.ymlseam — the managedrelease.ymlcalls the seam under acontents: read, packages: readtoken ceiling and a called workflow can never elevateGITHUB_TOKEN(id-token: writewould be denied). Devkit seam limitation to be filed upstream.DEVKIT_FLOATING_TAGSjob.dist-check.yml(Dist Check, PRs to release/**+main),js-quality.yml(eslint + prettier viajust).security-scan.yml(pure placeholder),CODEOWNERS,prepare_changelog.py+release_helpers.sh+ their tests,resolve-imagecomposite.package.json: addbundlealias (devkit-standard name drivingjust bundleand release-core's native dist prep) andformat:check.Verification (local, NixOS, direnv)
nix developresolves: node v24.16.0, npm 11.13.0, just, prek; flake-generated pre-commit config self-installs.just sync / lint / format-check / build / bundlegreen; 115 jest tests pass;dist/clean after rebuild (bundle fresh).typos, now flake-sourced (the pilot's NixOS fix, reproduced here).actionlintclean across all workflows.Follow-ups (not this PR)
Refs: #106