Skip to content

Codeql create golang database error on macos #863

Open
@p1keman

Description

@p1keman

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions