Description
codeql-cli v2.7.3
golang v1.17.5
M1 macOS Monterey v12.0.1
I have installed go and added it to the environment variable. I tried adding go environment variables to .zshrc and /etc/paths, but none of them worked.
% go version
go version go1.17.5 darwin/arm64
% codeql database create --language=go test --source-root=../codeql-study --overwrite
Initializing database at /codeql-study/test.
Running build command: [/codeql/cli/codeql/go/tools/autobuild.sh]
[2022-01-02 19:00:46] [build-stderr] 2022/01/02 19:00:46 Unable to run the go command, is it installed?
[2022-01-02 19:00:46] [build-stderr] Error: signal: abort trap
[2022-01-02 19:00:46] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/codeql/cli/codeql/tools/osx64/preload_tracer, /codeql/cli/codeql/go/tools/autobuild.sh])
A fatal error occurred: Exit status 1 from command: [/codeql/cli/codeql/go/tools/autobuild.sh]