mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
Use env("python_version", "3") so that when the parent just process
exports the variable, nested just calls (via language_tests.py) pick
it up.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
13 lines
409 B
Makefile
13 lines
409 B
Makefile
import "../../lib.just"
|
|
|
|
[no-cd]
|
|
format *ARGS=".": (_format_ql ARGS)
|
|
|
|
consistency_queries := source_dir() / "consistency-queries"
|
|
|
|
python_version := env("python_version", "3")
|
|
|
|
_v2_env := "CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2 CODEQL_PYTHON_LEGACY_TEST_EXTRACTION_VERSION=2"
|
|
_v3_env := "CODEQL_PYTHON_LEGACY_TEST_EXTRACTION_VERSION=3"
|
|
_python_env := if python_version == "2" { _v2_env } else { _v3_env }
|