-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vet: Don't use GOROOT to set PATH if GOROOT is unset #7761
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7761 +/- ##
==========================================
- Coverage 79.75% 79.70% -0.06%
==========================================
Files 365 365
Lines 36362 36362
==========================================
- Hits 29001 28982 -19
- Misses 6170 6189 +19
Partials 1191 1191 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. We can wait for someone from SVL to double check this
Am I reading this failure log correctly? I see this at the top
If |
Do we know when this happens? |
Nothing in there looks like a failure to me? Those are the commands it's running and it doesn't output anything, meaning |
TIL what |
We're using // Go versions less than 1.9 require GOROOT to be set
if (semver.lt(version, '1.9.0')) {
core.info('Setting GOROOT for Go version < 1.9');
core.exportVariable('GOROOT', installDir);
} It seems like GOROOT is not set for recent Go versions. PR that made the change to not export GOROOT from 2 years ago: actions/setup-go#175 |
The runner is installing go1.22, but starts using go1.23 when running vet:
I added logs to debug the go version before vet.sh updates the PATH
The problem is that
GOROOT
is not set and we're using it to set PATH.Example failure: https://github.com/grpc/grpc-go/actions/runs/11409299053/job/31749221269?pr=7759
RELEASE NOTES: None