Skip to content

Commit

Permalink
.travis: set lower GOGC value (#28705)
Browse files Browse the repository at this point in the history
As documented on https://golangci-lint.run/usage/performance/ , a lower
GOGC value causes less peak mem consumption when running the linter.

Exceeding 3Gb is a common cause for build failures, according to
https://docs.travis-ci.com/user/common-build-problems/#my-build-script-is-killed-without-any-error
  • Loading branch information
holiman committed Dec 19, 2023
1 parent 952b343 commit 5a9dda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go lint
- GOGC=10 go run build/ci.go lint

# These builders create the Docker sub-images for multi-arch push and each
# will attempt to push the multi-arch image if they are the last builder
Expand Down

0 comments on commit 5a9dda6

Please sign in to comment.