go tool not available: 'go env GOROOT' does not match runtime.GOROOT:
I've tried a few alternatives.
Running the analysis test directly
func TestAll(t *testing.T) {
analysistest.Run(t, analysistest.TestData(), Analyzer)
}
// ERROR: go tool not available: exec: "go": executable file not found in $PATH
What version of rules_go are you using?
0.47.0
What version of gazelle are you using?
0.36.0
What version of Bazel are you using?
7.1.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
macOS arm64
Any other potentially useful information about your toolchain?
N/A
What did you do?
I want to test a locally created analyzer using Go sourcecode in a testdata directory.
Test file
What did you expect to see?
A passing test.
What did you see instead?
I've tried a few alternatives.
Running the analysis test directly
Use the gopackagesdriver