-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
I am following the directions listed here.
I am doing this on Mac, running 10.15.7.
These are the steps I've taken:
- Downloaded CodeQL prebuilt binary (2.5.4) from here
- Extracted CodeQL into ~/code-ql
- Verified codeql CLI is working:
codeql % codeql version CodeQL command-line toolchain release 2.5.4. Copyright (C) 2019-2021 GitHub, Inc. Unpacked in: /Users/tc/codeql Analysis results depend critically on separately distributed query and extractor modules. To list modules that are visible to the toolchain, use 'codeql resolve qlpacks' and 'codeql resolve languages'.
- Obtained local copies of both codeql-repo & codeql-go and installed them in ~/codeql/codeql-repo ~/codeql/codeql-go respectiveley
- Ran
make
inside of ~/codeql-go - Ran
codeql resolve qlpacks
which resulted inlegacy-upgrades (/Users/tc/codeql/legacy-upgrades)
- Ran
codeql resolve languages
which resulted in:
cpp (/Users/tc/codeql/cpp)
csharp (/Users/tc/codeql/csharp)
csv (/Users/tc/codeql/csv)
go is found in 2 same-priority locations, so attempts to resolve it will fail:
/Users/tc/codeql/go
/Users/tc/codeql/codeql-go
html (/Users/tc/codeql/html)
java (/Users/tc/codeql/java)
javascript (/Users/tc/codeql/javascript)
properties (/Users/tc/codeql/properties)
python (/Users/tc/codeql/python)
xml (/Users/tc/codeql/xml)
- Attempted to do
codeql database create appdb --language=go
within the root directory of my Go project which resulted in:
Initializing database at /Users/tc/go/horizon/appdb
A fatal error occurred: Extractors for 'go' are found in several same-priority locations. It is unclear which to use:
/Users/tc/codeql/go
/Users/tc/codeql/codeql-go
Is there something I'm missing? At a minimum, I think the documentation here could be updated to make it more clear. Thanks!