-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Ability to download dependencies from arbitrary sources. #632
Comments
Tjhe most common way is to use path-based dependencies: https://github.com/D-Programming-Language/dub/wiki/Cookbook#working-with-submodules-or-packages-that-are-not-in-the-registry Alternatively see Issue #525 has a discussion about it. |
Thanks for your response. I'm using I like to be able to emulate the distribution process as accurately as possible during development. Likewise, some packages are not fit for hosting in a community repository, (specifically), but would benefit from having a private repository. For instance, a valid use case would be: Unfinished libraries and libraries which have little or no interest to the community at large. Both use cases could still benefit from a distribution method, but perhaps not the default DUB repository. Forgive my ignorance, correct me if I am wrong, but my understanding is that when you list a dependency in dub.json, it downloads that dependency straight from it's github source? Correct? So, Why not add the ability to specify a specific source in the dependency declaration and forego the DUB registry all together? The DUB registry is a nice convenience, but why require it? |
Yes but the particular tag must have been acknowledged by the DUB registry before.
I would also like to bypass it for private libs, but this needs to really work and honestly build problems are more concerning to me currently :) |
Thanks for taking the time to describe this to me. I appreciate it. I suppose, if there is some kind of feature request area, maybe it would be worth while to put this there so that when more pressing issues are behind the project, maybe we can come back to it? It sounds like this kind of feature might require an overhaul of the system in general, so maybe hold off until the next major release? Keep me informed of the situation and I'll try and lend a hand.
|
Eh I'm just a random user. I don't feel like what we do have is too bad. The problem with direct github access is that it would create pressure on the Github API which is not free after some volume of requests. |
I agree, I love DUB as-it-is. There is always room for improvement though. I suppose I should explain myself better though. I wasn't implying that there should be GitHub functionality. More like Git functionality in general, which wouldn't require using the GitHub API. For instance, I'm using GitLab for some of my projects. But I can use generic git commands to access those repositories, same goes for GitHub. Or any Git repository for that matter. One of my concerns is, and I hate bringing politics into the discussion, GitHub is currently being swarmed by SJWs as noted in their recent CoC. GitHub is also dictating and threatening to ban projects based on arbitrary moral standards. I'm not building anything particularity objectionable. But I think this is a warning for projects like DUB to rely less on requiring specific repositories and allow arbitrary repositories so DUB packages can't be censored. I'll get off my soap box now. Thanks for putting up with my bullshit. LOL. |
The node.js package manager does this very well by allowing arbitrary git repositories/commits as a version. This decreases friction when you need to create a fork to fix something (can't wait for a response from the maintainer) or when you need a specific commit between releases. It's possible to work around as you say but it would be very convenient to have. |
This is a duplicate of #104 |
Dub supports now also Maven repositories in addition to Dub registries (Artifactory, Nexus). |
Also file system provider will be available in near future: #1616 |
Closing because:
|
Loving DUB as a tool. I'm a DUB newbie so, if this is already a feature tell me to fuck off. (Preferably with an explanation how to do this)
Anyway, it would be nice to have the ability to download dependencies from arbitrary sources. For instance, I'm working on a library and don't want to clog the code.dlange.org repository with my bullshit until it's worthy. So, it would be nice to have a configuration in the the dub.json to specify an arbitrary source, such as github, or my private gitlan repositories or any arbitrary git repository.
For example, something like this:
I'd be willing to work on this feature myself if someone more knowledgeable with DUB is willing to mentor me.
The text was updated successfully, but these errors were encountered: