Skip to content

build(devkit): adopt devkit 1.2.0 and declare the v tag scheme - #76

Merged
c-vigo merged 1 commit into
devfrom
feature/62-devkit-tag-prefix-floating-tags
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/62-devkit-tag-prefix-floating-tags

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

What & why

Adopt vigOS devkit 1.2.0 and declare the per-repo release tag scheme that issue #62 was blocked on. 1.2.0 ships both blockers (DEVKIT_TAG_PREFIX vig-os/devkit#1044 and DEVKIT_FLOATING_TAGS vig-os/devkit#1045), so .vig-os now declares:

DEVKIT_TAG_PREFIX=v          # restore v-prefixed pipeline tags (vX.Y.Z)
DEVKIT_FLOATING_TAGS=major,minor  # auto-move v0 / v0.X at promote

Both floating tags were previously moved by hand.

Deployment was broken out of the box — three regressions found & fixed

Re-scaffolding onto 1.2.0 surfaced three fresh breakages (not in the release notes), each caught by running the real hook suite:

  1. typos scanned the vendored bundle. The language-aware managed .gitignore (devkit #1024) dropped this repo's dist/ handling, so typos ran over dist/index.js and failed on typos inside undici/octokit. → Re-ignored dist/src/ byproducts via a new, upgrade-proof nested dist/.gitignore.
  2. check-json rejected .vscode/settings.json. The scaffold added a JSONC provenance banner (#1053) but the compensating check-json exclude ships via the vigos flake input, still pinned to 1.1.0 — a silent version skew. → Bumped vigos.url to ?ref=1.2.0 and nix flake update vigos.
  3. The flake-generated .pre-commit-config.yaml (/nix/store symlink) was no longer gitignored and would have been committed broken. → Re-ignored in the managed root .gitignore (the only committed mechanism for a repo-root path).

Root causes filed upstream: vig-os/devkit#1092 (managed .gitignore drops consumer-required ignores) and vig-os/devkit#1093 (version skew ships the banner without its exclude).

Also

Verification

  • Full just precommit suite green; just lint/format-check clean; 84/84 jest tests pass.
  • dist-check gate clean (bundle rebuild leaves git status -- dist/ empty).
  • Tag-prefix/floating-tag wiring confirmed present in the scaffolded resolve-toolchain → release.yml/release-core.yml/release-publish.yml and the gated floating-tags job in promote-release.yml.

Caveats

Refs: #62

Bump DEVKIT_VERSION to 1.2.0 and re-scaffold. 1.2.0 ships the two keys
issue #62 was blocked on (vig-os/devkit#1044 DEVKIT_TAG_PREFIX and #1045
DEVKIT_FLOATING_TAGS), so declare the per-repo tag scheme in .vig-os:

  DEVKIT_TAG_PREFIX=v          # restore v-prefixed pipeline tags (vX.Y.Z)
  DEVKIT_FLOATING_TAGS=major,minor  # auto-move v0 / v0.X at promote

Both were previously moved by hand. Bump the vigos flake input to 1.2.0
to match the scaffold image (they must move together, else the shipped
JSONC provenance banner arrives without its check-json exclude and every
commit fails).

The 1.2.0 language-aware managed .gitignore (devkit#1024) dropped three
ignores this Node + flake-hooks repo relies on. Restore them so the
pre-commit suite and the dist-check gate stay green:

- flake-generated .pre-commit-config.yaml (a /nix/store symlink from the
  hooks = { } opt-in) re-ignored in the managed root .gitignore, the only
  committed mechanism for a repo-root path;
- dist/src/ tsc/ncc byproducts re-ignored via a new, upgrade-proof
  dist/.gitignore (nested, team-owned, survives scaffold upgrades).

Add README pinning guidance (@v0 floating major, exact @vX.Y.Z, or SHA)
and a changelog entry.

Refs: #62
@c-vigo
c-vigo merged commit 83e34eb into dev Jul 15, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/62-devkit-tag-prefix-floating-tags branch July 15, 2026 06:54
c-vigo added a commit that referenced this pull request Jul 15, 2026
## What & why

Adopt vigOS devkit `1.2.1` to unblock the **0.3.0** release, which
failed in
the automated release workflow (**Fixes #79**).

**Root cause:** the scaffolded `release-core.yml` applied the draft +
approval
gate to *every* release kind, so a `release_kind=candidate` dispatch
aborted
against its still-draft PR (`ERROR: PR #N is still in draft`). devkit
`1.2.1`
guards that gate behind `release_kind=final` — candidates gate on CI
only, the
`main`-protecting approval is re-enforced at promote
(vig-os/devkit#1095).

## Changes

- **`release-core.yml`** — regenerated from the 1.2.1 scaffold; the
draft +
  approval gate is now `release_kind=final`-only (the #79 fix).
- **`flake.nix` / `flake.lock` / `.vig-os`** — `vigos` input and
  `DEVKIT_VERSION` bumped to `1.2.1` (kept in sync per devkit#1093).
- **Reconciled the #76 manual workarounds now fixed upstream
(devkit#1092):**
- Removed the bespoke `dist/.gitignore`; the managed `.gitignore` now
ignores
    the `dist/src/` `tsc`/`ncc` declaration byproducts while keeping
    `dist/index.js` + `dist/package.json` tracked.
- Moved the flake-generated `.pre-commit-config.yaml` symlink ignore to
the
new consumer-owned **`.gitignore.project`** (the #1092 auto-seed only
fires
when the store symlink resolves at scaffold time, which a direnv-mode
    container upgrade can't do).
- **Restored the #62 tag scheme in `.vig-os`** — the 1.2.1 scaffold
reset
  `DEVKIT_TAG_PREFIX` and `DEVKIT_FLOATING_TAGS` to defaults; restored
`v` / `major,minor` so 0.3.0 still ships `vX.Y.Z` tags and moves `v0` /
`v0.X`.
- **CHANGELOG** — updated the `[0.3.0]` devkit bullet to reflect
shipping on
  1.2.1 and the #79 fix.

## Verification

- `just precommit` (full `prek` suite) green locally, including
  `no-commit-to-branch`.
- Bundle rebuilt with the pinned toolchain (`npm ci && npm run bundle`);
`dist/index.js` did not drift — the only `dist/` change is the
intentional
  `dist/.gitignore` removal (`dist-check` parity).

## Note

`gh issue develop` generated a `build/79-…` branch name, which the
enforced
branch-naming hook rejects (`build/` isn't an allowed prefix; dots
aren't valid
in the slug). This PR uses the compliant `chore/79-adopt-devkit-1-2-1`;
the
empty `build/79-adopt-devkit-1.2.1` branch it left on the remote can be
deleted.
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