Skip to content

Commit 752d28c

Browse files
committed
Python: Update repinning instructions
This aligns us better with the corresponding instructions for the Ruby extractor.
1 parent 7bec410 commit 752d28c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

python/extractor/tsg-python/Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ authors = ["Taus Brock-Nannestad <[email protected]>"]
77
edition = "2018"
88

99
# When changing/updating these, the `Cargo.Bazel.lock` file has to be regenerated.
10-
# Check out the documentation at https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies
11-
# for how to do so. The bazel repository for the tsg-python project is called `py_deps`,
12-
# and instead of calling `bazel sync`, `./build --bazel sync` should be used instead, to always use the correct bazel version.
10+
# Run `CARGO_BAZEL_REPIN=true CARGO_BAZEL_REPIN_ONLY=py_deps ./build --bazel sync --only=py_deps`
11+
# in the `semmle-code` repository to do so.
12+
# For more information, check out the documentation at
13+
# https://bazelbuild.github.io/rules_rust/crate_universe.html#repinning--updating-dependencies
14+
# In the future, the hope is to move this handling of the dependencies entirely into the `codeql` repository,
15+
# but that depends on `rules_rust` being fully compatible with bzlmod, which they aren't yet
16+
# (c.f. https://github.com/bazelbuild/rules_rust/issues/2452).
17+
# Warning: The process takes >5min on my M1 mac, so do wait for a while.
1318
[dependencies]
1419
anyhow = "1.0"
1520
regex = "1"

0 commit comments

Comments
 (0)