Skip to content

Commit 6003c87

Browse files
authored
Freeze ruff libraries to the REV that the TAG points to. (RustPython#6375)
Tags can move and be re-aliased to different revisions, and this actually freezes the rev (similar to how a published crate would) so that it only applies to this specific commit hash.
1 parent c578861 commit 6003c87

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,12 @@ rustpython-sre_engine = { path = "crates/sre_engine", version = "0.4.0" }
151151
rustpython-wtf8 = { path = "crates/wtf8", version = "0.4.0" }
152152
rustpython-doc = { path = "crates/doc", version = "0.4.0" }
153153

154-
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
155-
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
156-
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
157-
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
154+
# Ruff tag 0.14.1 is based on commit 2bffef59665ce7d2630dfd72ee99846663660db8
155+
# at the time of this capture. We use the commit hash to ensure reproducible builds.
156+
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", rev = "2bffef59665ce7d2630dfd72ee99846663660db8" }
157+
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", rev = "2bffef59665ce7d2630dfd72ee99846663660db8" }
158+
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", rev = "2bffef59665ce7d2630dfd72ee99846663660db8" }
159+
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", rev = "2bffef59665ce7d2630dfd72ee99846663660db8" }
158160

159161
phf = { version = "0.13.1", default-features = false, features = ["macros"]}
160162
ahash = "0.8.12"

0 commit comments

Comments
 (0)