mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
committed by
GitHub
parent
7e407d43d2
commit
7b4e890e7b
@@ -1,6 +1,6 @@
|
||||
This test shows how we handle modules the shadow a module in the standard library.
|
||||
This test shows how we handle modules that shadow a module in the standard library.
|
||||
|
||||
We manually replicate the behavior of `codeql database create --source-root <src-dir>`, which will use `-R <src-dir>`. By default, the way qltest invokes the extractor will cause different behavior. Therefore, we also need to move our code outside of the top-level folder, and it lives in `code-invalid-package-name/` -- notice that if we use `code` as the folder name, the extractor will treat it as if there is a package called `code` (note, `codeql database create` would not the folder `code` as a package when `code` is used as the `--source-root`).
|
||||
We manually replicate the behavior of `codeql database create --source-root <src-dir>`, which will use `-R <src-dir>`. By default, the way qltest invokes the extractor will cause different behavior. Therefore, we also need to move our code outside of the top-level folder, and it lives in `code-invalid-package-name/` -- notice that if we use `code` as the folder name, the extractor will treat it as if there is a package called `code` (note, `codeql database create` would not treat the folder `code` as a package when `code` is used as the `--source-root`).
|
||||
|
||||
The results from `LocalModules.ql`, where everything is a script, matches with the extractor :+1:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user