Skip to content

Commit f4cf5a0

Browse files
committed
ci(release): strip transitive deps from docs go.mod after vendor
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
1 parent 4613caf commit f4cf5a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)