Skip to content

Commit f20d01e

Browse files
committed
Move go mod download from goreleaser hook to workflow step
The goreleaser before hook hits proxy.golang.org directly, bypassing the JFrog proxy configured in the workflow. Download modules via JFrog in the workflow instead, so they're cached before goreleaser runs. Co-authored-by: Isaac
1 parent a96144f commit f20d01e

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/release-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
go.sum
4343
.goreleaser-release.yaml
4444
45-
- name: Configure Go module proxy via JFrog
46-
run: jf goc --repo-resolve=db-golang
45+
- name: Download Go modules via JFrog
46+
run: |
47+
jf goc --repo-resolve=db-golang
48+
jf go mod download
4749
4850
- name: Setup Java
4951
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0

.goreleaser-release.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
version: 2
22

3-
before:
4-
hooks:
5-
- go mod download
6-
73
builds:
84
- id: unix
95
main: ./.github/release-test

0 commit comments

Comments
 (0)