Skip to content

Commit

Permalink
chore: disable Go toolchain download (#3656)
Browse files Browse the repository at this point in the history
* chore: disable Go toolchain download

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

* chore: update changelog
  • Loading branch information
jeronimoalbi authored Sep 18, 2023
1 parent 4a226ef commit 3832fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [#3559](https://github.com/ignite/cli/pull/3559) Bump network plugin version to `v0.1.1`
- [#3522](https://github.com/ignite/cli/pull/3522) Remove indentation from `chain serve` output
- [#3601](https://github.com/ignite/cli/pull/3601) Update ts-relayer version to `0.10.0`
- [#3656](https://github.com/ignite/cli/pull/3656) Disable Go toolchain download

### Fixes

Expand Down
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 3832fa0

Please sign in to comment.