Skip to content

feat(manifest): write scaffolded .vig-os pin under DEVKIT_VERSION - #971

Merged
c-vigo merged 3 commits into
devfrom
feature/781-pin-key-writeback
Jul 10, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/781-pin-key-writeback

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Summary

Stage 1 slice of #781: flip the version-pin write path to the renamed
DEVKIT_VERSION key. Builds on the merged dual-key reader (#968), so this is a
soft cutover — readers still accept the legacy DEVCONTAINER_VERSION.

Changes

  • Template assets/workspace/.vig-os — DEVKIT_VERSION={{IMAGE_TAG}}.
  • init-workspace.sh — writeback sed rewrites either key → DEVKIT_VERSION
    (migrates a stray legacy line); header comment updated.
  • release.yml finalize — writes DEVKIT_VERSION to the repo-root .vig-os.
  • Repo-root .vig-os — now DEVKIT_VERSION=0.5.1 (dogfoods the new key).
  • justfile.devc devc-upgrade — reader missed by the initial parser sweep
    (it reads the pin via awk, not sed/grep/case); now dual-keyed, preferring
    DEVKIT_VERSION with the legacy fallback.
  • flake.nix — comment only (the {{IMAGE_TAG}} substitution is key-agnostic).
  • Scaffold ci.yml / prepare-release.yml — user-facing pin-key mentions updated.

Migration behaviour

.vig-os is not in PRESERVE_FILES, so a --force upgrade overwrites it from
the template (now DEVKIT_VERSION) and the stale legacy key naturally drops. New
bats test init-workspace migrates a legacy DEVCONTAINER_VERSION pin to DEVKIT_VERSION (#781) covers this end to end.

Out of scope (later slices)

The docker-compose .env interpolation variable stays DEVCONTAINER_VERSION
(it's the compose var, not the pin) — its rename rides the image-ref cutover (PR 2).

Testing

  • tests/bats/init-workspace.bats — 7 version-pin tests green (incl. migration); full file 127 green. TDD RED→GREEN.
  • tests/bats/just.bats — devc-upgrade reads DEVKIT_VERSION, still honors legacy. Green.
  • tests/test_integration.py — scaffolded-.vig-os assertions flipped to DEVKIT_VERSION (container tests run in CI).
  • just precommit (full suite) — green.

Refs: #781

c-vigo added 2 commits July 10, 2026 13:26
Flip the .vig-os version-pin assertions to the renamed DEVKIT_VERSION key and add
a migration case asserting a legacy DEVCONTAINER_VERSION manifest is rewritten to
DEVKIT_VERSION on a --force upgrade (the .vig-os overwrite drops the stale key).
Fails against the current DEVCONTAINER_VERSION-writing scaffold.

Refs: #781
… (GREEN)

Flip the version-pin WRITE path to the renamed DEVKIT_VERSION key: the template
manifest, init-workspace.sh writeback, the release.yml finalize step, the
repo-root .vig-os, and the scaffolded devc-upgrade recipe (which read the pin via
awk — a reader missed by the initial parser sweep, now dual-keyed). A --force
upgrade migrates a legacy DEVCONTAINER_VERSION pin to DEVKIT_VERSION because
.vig-os is overwritten from the template; the writeback sed also rewrites either
key defensively. Readers still accept the legacy key (soft cutover). User-facing
pin-key mentions in the scaffold ci.yml / prepare-release.yml are updated.

The docker-compose .env interpolation variable stays DEVCONTAINER_VERSION in this
slice. Integration assertions on the scaffolded .vig-os follow the rename; the
.env / legacy-read assertions are unchanged.

Refs: #781
@c-vigo
c-vigo enabled auto-merge July 10, 2026 11:42
@c-vigo
c-vigo merged commit bad9ad4 into dev Jul 10, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/781-pin-key-writeback branch July 10, 2026 11:50
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