Skip to content

Commit 7fa7f6f

Browse files
doringemanclaude
andcommitted
ci(release): strip transitive deps from docs go.mod after vendor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Dorin Geman <dorin.geman@docker.com>
1 parent 7974339 commit 7fa7f6f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ jobs:
569569
RELEASE_TAG: ${{ needs.prepare.outputs.release_tag }}
570570
run: |
571571
VENDOR_MODULE=github.com/docker/model-runner@${RELEASE_TAG} make vendor
572+
# Remove the second require block added by `go get` — the docs repo
573+
# only needs the direct dependency in the first require block.
574+
awk '/^require \(/{n++} n==2{if(/^\)/) n=3; next} n!=2' go.mod > go.mod.tmp && mv go.mod.tmp go.mod
572575
573576
- name: Create pull request
574577
if: steps.check-docs.outputs.changed == 'true'

0 commit comments

Comments
 (0)