Skip to content

Commit 20f6374

Browse files
committed
Disable Go workspace mode in goreleaser
go mod download in workspace mode resolves the union of all workspace modules' dependencies. This includes k8s.io/kubernetes staging packages at v0.0.0, which are not published as standalone modules and cause the download to fail. Setting GOWORK=off restricts the download to the root module. The local replace directive for pkg/apis handles cross-module resolution without workspace mode.
1 parent e4857b0 commit 20f6374

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ project_name: fleet
55

66
env:
77
- CGO_ENABLED=0
8+
- GOWORK=off
89
- IS_HOTFIX={{ if isEnvSet "IS_HOTFIX"}}{{ .Env.IS_HOTFIX }}{{else}}false{{end}}
910

1011
release:

0 commit comments

Comments
 (0)