Dependency management
d-e-s-o opened this issue · 12 comments
The topic has come up in the past, mostly here and here: whether to keep the current repository structure with vendored dependencies or not.
I think I've come to a point where I am ready to remove checked-in dependencies and move nitrocli/*
into the repository's root. The main reasons for that: even with vendored dependencies cargo
insists on an internet connection (or at least I never got that working to my satisfaction without) and dependency management is too cumbersome with the increasing number of dependencies we have.
As part of the removal, I'd also remove Cargo.lock
from the repository and trust dependencies and their updates won't break the build (i.e., be semver compliant) and won't introduce malicious code.
Does anybody have concerns about such a move? @robinkrahl @jan23 @alex-nitrokey
Otherwise I'll probably go ahead and experiment with such a move on devel
.
ok for me.
Thanks for the feedback!
But I’d rather keep Cargo.lock under version control
Sounds good. I don't feel strongly either way and preserving Cargo.lock
is surely the safer option.
I've updated devel
accordingly.
By the way, once this change is merged into master, links that point to the nitrocli folder (as recommended here) will no longer work. So we should try to find fix these links if possible. Here’s what I found using Google:
Good point. It makes sense to have a reminder, so let me actually reopen this issue until a new version is released.
nitrocli 0.3.2
is out with, with the vendored dependencies removed.
@szszszsz, would you mind updating the comment that Robin pointed out?
Sorry, I did not got notification from the comment's edit.
Done!
Thanks @szszszsz!
It will probably take more time until changes have trickled down to all the man pages, but it should happen eventually. Let me know if additional actions are required.
Hey @szszszsz , I noticed that there is another post references the old nitrocli URL: https://support.nitrokey.com/t/beginner-trying-to-use-nitrokey-storage-with-kodi-device/1822/2
Would you mind adjusting it as well?
Thanks!
Just fixed this one. There are more as far as I see - https://support.nitrokey.com/search?q=nitrocli. Will correct them too.
Awesome! Thanks for spotting and fixing those.