[easy][minor] Freeze ruff libraries to the REV that the TAG points to.#6375
[easy][minor] Freeze ruff libraries to the REV that the TAG points to.#6375youknowone merged 1 commit into
Conversation
WalkthroughFour ruff-related dependencies in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-11-29T12:17:28.606ZApplied to files:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
Cargo.toml (1)
154-157: Approve dependency pinning strategy.The conversion from tag-based to revision-based pinning across all four ruff crates is the correct approach to prevent the vendoring issues caused by moving tags. Using the same revision hash for all four interdependent crates ensures compatibility.
Consider adding a brief comment above these dependencies to document which upstream release this revision corresponds to, for future maintainers:
+# Pinned to revision of Ruff v0.14.1 tag for stable vendoring (tags can move/realias) +# See: https://github.com/astral-sh/ruff/releases/tag/0.14.1 ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", rev = "2bffef59665ce7d2630dfd72ee99846663660db8" }
📜 Review details
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (1)
Cargo.toml(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: RustPython/RustPython PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-29T12:17:28.606Z
Learning: Applies to Lib/**/*.py : Minimize modifications to CPython standard library files in the `Lib/` directory; modifications should be minimal and only to work around RustPython limitations
📚 Learning: 2025-11-29T12:17:28.606Z
Learnt from: CR
Repo: RustPython/RustPython PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-29T12:17:28.606Z
Learning: Applies to **/*.py : Use ruff for linting Python code
Applied to files:
Cargo.toml
Sorry, something went wrong.
ShaharNaveh
left a comment
There was a problem hiding this comment.
Generally, I'm fine with this change. Can you please add the tag version as a comment? it will be easier to track which ruff version we use.
Ty:)
Sorry, something went wrong.
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.
youknowone
left a comment
There was a problem hiding this comment.
Thanks! I didn't know tag is possible to cause problems
Sorry, something went wrong.
6003c87
into
RustPython:main
Dec 9, 2025
|
Could you tell me what are you building with RustPython if you don't mind? Just in curiuos. |
Sorry, something went wrong.
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. (Tag release link: https://github.com/astral-sh/ruff/releases/tag/0.14.1)
This has caused some minor problems when vendoring sources where Ruff is used by other projects and is already pulled in by a rev, causing
cargo vendorto crash.Thanks for the awesome project!
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.