dub icon indicating copy to clipboard operation
dub copied to clipboard

~master dependencies should be upgraded automatically

Open MartinNowak opened this issue 12 years ago • 9 comments

Pretty simple issue, once the master package is installed it never gets updated. Only reinstalling helps currently.

MartinNowak avatar Oct 14 '13 20:10 MartinNowak

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.

s-ludwig avatar Oct 15 '13 13:10 s-ludwig

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.

MartinNowak avatar Oct 15 '13 15:10 MartinNowak

You are right that should indeed happen (Sorry, I've overlooked the "automatically").

s-ludwig avatar Oct 15 '13 18:10 s-ludwig

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 ;).

MartinNowak avatar Oct 15 '13 22:10 MartinNowak

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

WebFreak001 avatar Feb 16 '23 17:02 WebFreak001

Wouldn't we use the commit id of the VCS repo rather than a checksum?

rikkimax avatar Feb 16 '23 17:02 rikkimax

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.

WebFreak001 avatar Feb 16 '23 17:02 WebFreak001

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 avatar Aug 04 '23 12:08 ntrel

@ntrel please open a new issue for that, that's unrelated to this issue

WebFreak001 avatar Aug 04 '23 12:08 WebFreak001