mirror of
https://github.com/github/codeql.git
synced 2026-01-28 05:42:58 +01:00
Docs: Update references to github/codeql-go
github/codeql-go is being merged into github/codeql. Update references to `codeql-go` within the CodeQL CLI docs. Add Go to the list of mentioned languages where applicable. Leave an explanatory note in the setup instructions about the previous requirement to check out `github/codeql-go`, and mention this is no longer necessary. The remaining references are to historical commits, which will continue to exist.
This commit is contained in:
@@ -7,10 +7,8 @@ QL packs are used to organize the files used in CodeQL analysis. They
|
||||
contain queries, library files, query suites, and important metadata.
|
||||
|
||||
The `CodeQL repository <https://github.com/github/codeql>`__ contains QL packs for
|
||||
C/C++, C#, Java, JavaScript, Python, and Ruby. The `CodeQL for Go
|
||||
<https://github.com/github/codeql-go/>`__ repository contains a QL pack for Go
|
||||
analysis. You can also make custom QL packs to contain your own queries and
|
||||
libraries.
|
||||
C/C++, C#, Go, Java, JavaScript, Python, and Ruby.
|
||||
You can also make custom QL packs to contain your own queries and libraries.
|
||||
|
||||
QL pack structure
|
||||
-----------------
|
||||
|
||||
@@ -193,7 +193,7 @@ further options on the command line.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The `CodeQL repository <https://github.com/github/codeql>`__ contains
|
||||
the queries and libraries required for CodeQL analysis of C/C++, C#, Java,
|
||||
the queries and libraries required for CodeQL analysis of C/C++, C#, Go, Java,
|
||||
JavaScript/TypeScript, Python, and Ruby.
|
||||
Clone a copy of this repository into ``codeql-home``.
|
||||
|
||||
@@ -203,15 +203,16 @@ CLI that you will extract in step 4. If you use git on the command line, you can
|
||||
clone and rename the repository in a single step by running
|
||||
``git clone git@github.com:github/codeql.git codeql-repo`` in the ``codeql-home`` folder.
|
||||
|
||||
The CodeQL libraries and queries for Go analysis live in the `CodeQL for Go
|
||||
repository <https://github.com/github/codeql-go/>`__. Clone a copy of this
|
||||
repository into ``codeql-home``, and run ``codeql-go/scripts/install-deps.sh``
|
||||
to install its dependencies.
|
||||
For Go analysis, run ``codeql-repo/go/scripts/install-deps.sh`` to install its dependencies.
|
||||
|
||||
The cloned repositories should have a sibling relationship.
|
||||
For example, if the root of the cloned CodeQL repository is
|
||||
``$HOME/codeql-home/codeql-repo``, then the root of the cloned CodeQL for Go
|
||||
repository should be ``$HOME/codeql-home/codeql-go``.
|
||||
.. pull-quote:: Note
|
||||
|
||||
The CodeQL libraries and queries for Go analysis used to live in a
|
||||
separate `CodeQL for Go repository <https://github.com/github/codeql-go/>`__.
|
||||
These have been moved to the ``github/codeql`` repository.
|
||||
It is no longer necessary to clone the ``github/codeql-go`` into a separate ``codeql-home/codeql-go`` folder.
|
||||
|
||||
For more information, see `this announcement <https://github.com/github/codeql-go/issues/741>`__.
|
||||
|
||||
Within these repositories, the queries and libraries are organized into QL
|
||||
packs. Along with the queries themselves, QL packs contain important metadata
|
||||
|
||||
Reference in New Issue
Block a user