Skip to content

Release 2.1.32 (2026-06-11)

Bug fixes

  • write release artifacts into the worktree, not repo_root (#1626) (#1627)

1600 moved vrg-release into a managed worktree: preflight creates it and os.chdir's in, so every git.run() index op now executes with the worktree as cwd. But the artifact-generation calls still passed ctx.repo_root (the main checkout) to version.bump and changelog.generate_changelog/generate_release_notes, so CHANGELOG.md, releases/vX.Y.Z.md, and VERSION were written into the main checkout while git add ran in the worktree. The relative 'git add CHANGELOG.md' silently no-opped against the worktree copy; the absolute 'git add ' failed with 'fatal: ... is outside repository', breaking every release and leaving the main checkout's develop tree dirty.

Add ReleaseContext.work_root (worktree_path or repo_root) and use it for the bump and changelog calls in prepare.py and bump.py. repo_root stays the main checkout, which finalize chdir's back to so vrg-finalize-pr (which refuses to run outside the main worktree) still works. The fallback keeps the pre-worktree path correct when worktree_path is unset.