rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

Switching branches results in `no such file or directory` (missing Go SDK)

Open arjantop-cai opened this issue 10 months ago • 0 comments

I have two branches, one with rules_go 0.52.0 + go 1.23 and another with rules_go 0.53.0 + go 1.24

I get a strange error sometimes when switching between the two branches:

Error in fail: gazelle++go_deps+org_golang_google_genproto_googleapis_rpc: fetch_repo:
go mod download exec error: /private/var/tmp/_bazel_atopolovec/29ec91ab44902ce087f81950e63441b1/external/rules_go++go_sdk+go_sdk/bin/go /private/var/tmp/_bazel_atopolovec/29ec91ab44902ce087f81950e63441b1/external/rules_go++go_sdk+go_sdk/bin/go mod download -json -modcacherw google.golang.org/genproto/googleapis/[email protected]: fork/exec /private/var/tmp/_bazel_atopolovec/29ec91ab44902ce087f81950e63441b1/external/rules_go++go_sdk+go_sdk/bin/go: no such file or directory

I have not been able to reproduce what is the trigger or steps to reproduce.

arjantop-cai avatar Feb 17 '25 11:02 arjantop-cai