~master dependencies should be upgraded automatically
Pretty simple issue, once the master package is installed it never gets updated. Only reinstalling helps currently.
On git master or latest release? It was supposed to be "fixed" by now. "Fixed" meaning that branch based dependencies will always be reinstalled when "dub upgrade" is invoked. Issue #9 is related.
This seems to be a misunderstanding on my side on how to use dub or an enhancement request. I had expected that dub build would at least regularly check old installed packages (1 week or so) and automatically perform an upgrade. Not necessarily for tagged versions, but for bleeding edge ~master.
You are right that should indeed happen (Sorry, I've overlooked the "automatically").
You are right that should indeed happen (Sorry, I've overlooked the "automatically").
No worries, I changed the title because the original post was unclear ;).
branch based dependencies have been deprecated / discouraged for a while for this reason.
I think to go forward with this, like described in #9, we need:
- some checksum in dub.selections.json (#1723)
- registry keeping track of checksums of repo / branch dependencies
Wouldn't we use the commit id of the VCS repo rather than a checksum?
yes, that's actually a better way how to keep track of git dependencies, but we would probably still want the registry to send people what's the current version, so locally it can be checked if an update is needed.
If using a repository is to replace ~branch, we would also need a way to specify a git branch for dub run. E.g. currently this works (though master is only fetched the first time):
dub run dlang-tour@~master -- --lang-dir .
@ntrel please open a new issue for that, that's unrelated to this issue