Skip to content

Commit

Permalink
chore: disable Go toolchain download
Browse files Browse the repository at this point in the history
We must disable toolchain download to allow `go mod tidy` to work.
We are disabling GOMODSUM because of timeouts triggered because of the
size of the CLI repo. Disabling GOMODSUM makes toolchain download fail.
See: https://go.dev/doc/toolchain#download
  • Loading branch information
jeronimoalbi committed Sep 13, 2023
1 parent fb86aa2 commit b6f514d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ignite/pkg/gocmd/gocmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func ModTidy(ctx context.Context, path string, options ...exec.Option) error {
// FIXME(tb) untagged version of ignite/cli triggers a 404 not found when go
// mod tidy requests the sumdb, until we understand why, we disable sumdb.
// related issue: https://github.com/golang/go/issues/56174
exec.StepOption(step.Env("GOSUMDB=off")),
// Also disable Go toolchain download because it doesn't work without a valid
// GOSUMDB value: https://go.dev/doc/toolchain#download
exec.StepOption(step.Env("GOSUMDB=off", "GOTOOLCHAIN=local+path")),
)...)
}

Expand Down

0 comments on commit b6f514d

Please sign in to comment.