-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-repo packages #50
Comments
DUBs approach is this:
This has the advantage that both, the exact repository URL, as well as the target path can be chosen. Especially the URL seems to be sensitive (e.g. different URL for public access and maybe per-user URLs for write access). Coming to think of it, an alternative approach that works is to define the dependency in package.json like this:
and then check out the project at |
The I like the "path" thing in the json, as long as it works for both local |
You could also use a git sub-module and then use the "path" field in such situations (also solves pinning to certain revisions)... But extending "path" to take SCM URLs sounds like a good extension. |
When you plain to implement this? dlibgit written for this issue? |
There is no fixed date/plan for this, yet. Next priority will be to get C language family build support. But this of course doesn't mean that someone else couldn't create a pull request. An implementation of this should probably use the command line git tool rather than |
Another approach to this: add the repo as a git submodule, then add the path to the dependency in dub.json. This has the advantage that you can add different versions in different projects. |
Yet another way to do this, if you have a sufficiently large organization: use a private dub registry. Considering there are at least three ways to accomplish this ( |
Yeah, "missing git support" is one of the top complaints about dub. Paths and submodules do okayish, but for example, submodules aren't currently fetched by DUB. This while being old, I think this issue is still valid today |
I think this would be really useful |
We now have the ability to depend on an SCM repository directly. We also have path dependencies, so I think that covers it. |
Particularly for non-public libs/projects or projects needing a specific alternate fork of a dependency, DUB needs a way to specify a dependency on an arbitrary Git repo URL (Whether local, online, login-protected, etc.)
The text was updated successfully, but these errors were encountered: