dub icon indicating copy to clipboard operation
dub copied to clipboard

Dub packages that have a submodule won't work

Open MrcSnm opened this issue 2 years ago • 3 comments

System information

  • dub version: 1.36.0
  • OS Platform and distribution: All
  • compiler version All

Bug Description

If you include a git repository that contains submodules, those submodules aren't included in the dub dependency. It is okay as a default, but the problem is that the repo Is not cloned, which would mean, even git submodule update --init --recursive does not work since it is not a git repository.

How to reproduce?

Expected Behavior

Maybe the downloaded package could have an option to use git clone instead of downloading the .zip archive? It could even have an alternate .zip download, since this way I would be able to supply a .zip archive containing the submodules.

I know dub is able to do the package management. But having more than one repo inside a repo makes it fairly easier to work with when I need.

Logs

MrcSnm avatar Dec 21 '23 12:12 MrcSnm

This is not an issue on dub side's though, the Github release does not include submodules.

Geod24 avatar Dec 28 '23 16:12 Geod24

This is not an issue on dub side's though, the Github release does not include submodules.

Hum but it would be better having a way to better distribute that. Do you have any idea? Unfortunately using preBuildCommands does not work, because the way dub is distributed are not by using a git repository.

MrcSnm avatar Dec 29 '23 00:12 MrcSnm

The obvious workaround is to use repository dependencies instead of submodules.

Geod24 avatar Dec 29 '23 00:12 Geod24