-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Relative dependencies get lost after updating alr #721
Comments
Yes, that's to be expected with the current approach, in the sense that changes to the lockfile format are breaking in the master branch. This file should stabilize so this ceases to be a problem, just like for the manifest. Of course that's not much consolation for you at this time. That said, some thoughts about we can do:
I see both ways working, and at this juncture it would be relatively easy to switch to 2., given that 1. carries its own complexity. Thoughts, @Fabien-Chouteau ? |
Not sure if I understand 1. completely, but it sounds risky. The "rescue" pins part can be a nightmare to support as the format evolve. One issue with 2. is that we don't want I had a look at Cargo's do: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html For us it could look like this: [[depends-on]]
orka_types = "^1.0.0"
orka_simd = "^1.0.0"
orka_transforms = "^1.0.0"
[[pins]]
orka_types = {version = "=1.0.1"}
orka_simd = {path = "../orka_simd/"}
orka_transform = {git = "https://github.com/plop/plip", branch = "fix-plop"} And I kinda like it. |
@Fabien-Chouteau , yes, exactly.
|
I just updated alr (from 625c906 to c63615d) and subsequently running
alr build
oralr update
causes dependecies added withalr with --use
to go "missing". Thepath
andrelative
are removed from the lock file.For example, running
alr update
in theorka
crate in my orka repository shows:I then need to (recursively) remove each dependency and then re-add with
alr with --use
.This seems to involve quite a few steps to 'fix' each dependency. I'm not sure the lock files are the appropriate file for storing the relative paths. I should be able to just throw away a lock file and then run
alr update
to recreate it.The text was updated successfully, but these errors were encountered: