Skip to content

Commit d43d8cc

Browse files
committed
drop the no-replaces gate
Remove check-no-replaces.sh, the release-prep-guard job in v2-checks, and the pre-flight call in v2-release. go.work keeps go.mods clean during development and replaces are dropped at release-prep, so the separate gate is not needed. The runbook keeps a manual reminder to confirm no replace directives remain before tagging.
1 parent 38ae7ff commit d43d8cc

4 files changed

Lines changed: 3 additions & 40 deletions

File tree

.github/workflows/v2-checks.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,3 @@ jobs:
5656

5757
- name: Release-mode build (all 16 modules pin + external consumer, GOWORK=off)
5858
run: bash scripts/check-release-mode.sh
59-
60-
release-prep-guard:
61-
name: No local terratest replaces (release commits only)
62-
runs-on: ubuntu-latest
63-
if: |
64-
startsWith(github.ref, 'refs/tags/modules/') ||
65-
contains(github.event.head_commit.message, '[release-prep]')
66-
steps:
67-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
68-
with:
69-
persist-credentials: false
70-
- run: bash scripts/check-no-replaces.sh

.github/workflows/v2-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: v2 Release (lockstep tag push)
66
# Use this AFTER:
77
# - scripts/release-prep.sh ran on the release-prep branch
88
# - The release-prep commit was reviewed and approved
9-
# - check-no-replaces.sh passes on that commit
109

1110
on:
1211
workflow_dispatch:
@@ -40,7 +39,6 @@ jobs:
4039
with:
4140
ref: ${{ inputs.commit_sha }}
4241
persist-credentials: false
43-
- run: bash scripts/check-no-replaces.sh
4442
- run: bash scripts/check-acyclic-deps.sh
4543
- run: bash scripts/check-single-source.sh
4644
- run: bash scripts/check-siv-placement.sh

docs/v2-release-runbook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ build is validated continuously without committing the pin or needing tags.
5151
3. Set every internal `require` to the exact version being tagged, then DROP all
5252
internal `replace` directives. Do not run `go work sync` against the unpinned
5353
tree.
54-
4. CI guard: run `bash scripts/check-no-replaces.sh`; it must pass before tagging.
55-
It catches both single-line and block-form `replace ( ... )` directives, which
56-
a plain `grep '^replace'` would miss.
54+
4. Before tagging, confirm no internal `replace` directives remain in any
55+
`modules/*/go.mod`. A committed `replace` would publish a module pointing at a
56+
local path and break consumers.
5757
5. Move `test/` to its own module here too if not already done, and pin it the
5858
same way (it is test-only, so committed `replace`s are acceptable for it).
5959

scripts/check-no-replaces.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)