-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(manager/cargo): support for git dependencies #26531
Comments
Hi, I noticed that git-dependencies are supported for poetry, perhaps the same concepts could be used here? |
#32235 that supports git dependencies is mostly ready, but there's one thing I'm not quite sure about in the logic (#32235 (review)) I've been told could be worth sharing here. Basically, I had to do ab69e05 on top of the existing logic, otherwise a warning would be displayed on Renovate's dependency dashboard, as git dependencies do not have locked versions in [[package]]
name = "ruff_python_parser"
version = "0.0.0"
source = "git+https://github.com/astral-sh/ruff?tag=0.6.1#02c4373a4927657a8825d18ae8f0877806cd1f15" But this means that for git dependencies, we would never use It does seem to work fine though, as can be seen in mkniewallner/renovate-rust-git-dependencies#11, but I'm not sure if this is the expected way to treat the update of git dependencies. Technically, using cargo update --package ruff_python_parser --precise 0.7.0 But I believe the idea of passing |
I think we should skip that lockedVersion check one way or another - it's fully "locked" in the package file alone. It's also important that grouping or updating git dependencies with others does not produce unwelcome/unnecessary changes. I assume that
|
Discussed in #26521
Originally posted by richvdh January 5, 2024
Tell us more.
https://github.com/richvdh/renovate-cargo-git-test is an example of a Cargo project with a git dependency.
Cargo.lock
is out of date, and can be updated withcargo update -p empty-git-lib
.Renovate reports:
My understanding, looking at the source, is that Renovate will refuse to touch any dependency that comes from a git repo. It would be great if support could be added!
Reproduction: https://github.com/renovate-reproductions/26531
The text was updated successfully, but these errors were encountered: