What's the best way to update a nimble package?
For example, I just updated a package of my own, and pushed it to Git, and I have another project that uses this packages and need the new version. I'm not using nimble develop mostly because I no longer need it (this is a small correction/addition and I do not need such close interaction).
For now, I'm doing:
rm -rf ~/.nimble/pkgs2/emailparser-0.1.0-aa6541da8aca684d6843c704e7ac6777c79dff75
nimble install -d
The package does not have any version released yet, I'm tracking the latest HEAD (automatically)
Thank you.
You mean you want a general guide on how to update a package from version A to version B?
If that's what you're asking, I started keeping a repository on github with my obsidian-notes in order to be able to share what I've gathered so far.
https://github.com/PhilippMDoerner/NimSetup/blob/main/Github%20Project%20Maintenance.md
This is what I'm doing for now if I want to increment customPackage from version 0.1 to 0.2.
Beyond updating to the specific git-hashes you want every time (or tracking #head as you do) I can't think of anything.
If it's something that occurs often, maybe making a nimble-task out of it might be useful?
task reinstall, "Installs this package and ensures a redownload of the emailparser's most recent commit":
rm -rf ~/.nimble/pkgs2/emailparser-0.1.0-*
nimble install -d
Then you can just nimble reinstall instead of having to always do it manually