@@ -57,44 +57,27 @@ construction of the library path.
57
57
First, determine the *query directory * of the ``.ql `` file being
58
58
compiled. Starting with the directory containing the ``.ql `` file, and
59
59
walking up the directory structure, each directory is checked for a
60
- file called ``queries.xml `` or ``qlpack .yml ``. The first directory
60
+ file called ``qlpack.yml `` or ``codeql-pack .yml ``. The first directory
61
61
where such a file is found is the query directory. If there is no such
62
62
directory, the directory of the ``.ql `` file itself is the query
63
63
directory.
64
64
65
- A ``queries.xml `` file that defines a query directory must always
66
- contain a single top-level tag named
67
- ``queries ``, which has a ``language `` attribute set to the identifier
68
- of the active database schema (for example, ``<queries
69
- language="java"/> ``).
70
-
71
65
A ``qlpack.yml `` file defines a :ref: `CodeQL pack <about-codeql-packs >`.
72
66
The content of a ``qlpack.yml `` file is described in the CodeQL CLI documentation.
67
+ ``codeql-pack.yml `` is an alias for ``qlpack.yml ``.
73
68
74
- If both a ``queries.xml `` and a ``qlpack.yml `` exist in the same
75
- directory, the latter takes precedence (and the former is assumed to
76
- exist for compatibility with older tooling).
77
-
78
- The CodeQL CLI and newer tools based on it (such as,
69
+ The CodeQL CLI and tools based on it (such as,
79
70
GitHub code scanning and the CodeQL extension for Visual Studio Code)
80
71
construct a library path using CodeQL packs. For each CodeQL pack
81
72
added to the library path, the CodeQL packs named in its
82
- ``libraryPathDependencies `` will be subsequently added to the library
73
+ ``dependencies `` will be subsequently added to the library
83
74
path, and the process continues until all packs have been
84
75
resolved. The actual library path consists of the root directories of
85
76
the selected CodeQL packs. This process depends on a mechanism for finding
86
- CodeQL packs by pack name, as described in the :ref: `CodeQL CLI documentation <codeql-cli >`.
87
-
88
- When the query directory contains a ``queries.xml `` file but no
89
- ``qlpack.yml ``, the CodeQL pack resolution behaves as if it defines a QL
90
- pack with no name and a single library path dependency named
91
- ``legacy-libraries-LANGUAGE `` where ``LANGUAGE `` is taken from
92
- ``queries.xml ``. The ``github/codeql `` repository provides packs with
93
- names following this pattern, which themselves depend on the actual
94
- CodeQL libraries for each language.
95
-
96
- When the query directory contains neither a ``queries.xml `` nor
97
- ``qlpack.yml `` file, it is considered to be a CodeQL pack with no name and
77
+ CodeQL packs by pack name and version, as described in the :ref: `CodeQL CLI documentation <codeql-cli >`.
78
+
79
+ When the query directory contains neither a ``qlpack.yml `` nor
80
+ ``codeql-pack.yml `` file, it is considered to be a CodeQL pack with no name and
98
81
no library dependencies. This causes the library path to consist of
99
82
*only * the query directory itself. This is not generally useful,
100
83
but it suffices for running toy examples of QL code that don't
0 commit comments