-
Notifications
You must be signed in to change notification settings - Fork 15
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 for more endpoints like Gitlab and Github Enterprise #23
Comments
I think one thing that will definitely be a point of contention is the fact that every gitlab remote is a different URL, i.e. bitbucket is always api.bitbucket.org, github is always raw.github or whatnot, but Gitlab will need to be configured via some .bashrc/.*rc file as an export. Something like
I wonder if it will be a struggle eventually for people who may have two or three different Gitlab remote URLs, or, even companies who are using two seperate Gitlab URLs (dev remotes vs. production remotes or something). I think it would be worth just working with the assumption there can only be one, and that users will have to specify the variable before calling component install if they want to use one of many remotes. ie
Keep me posted on what you've got going on - I will be available this weekend to help/review/pickup where you leave off, etc. Cheers! |
I liked the old model where you would provide an array of Is that not possible with |
We had a similar discussion already. The Problem is that each new remote So you need to map your deps to an endpoint with a special syntax like
I think there is no solution wihtout using the remotes API to realize
So remotes become an array of objects. You can disable and reorder the Behaviour: |
I like the idea of a remote dictionary a lot, but I think it might warrant having a
etc, etc. It actually leads to a good point that it may be important not to have a global config to ensure that dependencies use the remotes they actually need, and not the remotes that are configured by the user. |
Yes this would be very nice, but I think this is really hard to realize without define dependencies redundant and be backward compatible (to old component.json files). And solve all this problem from the beginning. IMO we should focus in the very first solution to make it easier to add custom remote end points and give the user the control which remotes he need. The user can disable them (to boost the install process) if he knows that none of his dependencies (even transitive) use any of his disabled remotes. And if he disabled it accidently, he will notice it when he try to install the dependencies, he will get an error that a dependency could not be resolved. So I think this is not a problem. |
I like what timaschew is saying: "IMO we should focus in the very first solution to make it easier to add custom remote end points and give the user the control which remotes he need." Could we list the dependencies as fully qualified URLs to the git repository that can then be cloned? Or would that be considered too verbose? I also think a .componentrc config file for remotes would be adequate such that users could configure several github enterprise or gitlab endpoints. |
do you have another idea how to map the the dependencies inside |
Thinking primarily of GitHub Enterprise here, since that's my primary concern, how about a remotes: {
"ghe": "github:myGitHubInstall.myCompany.com"
} Then the
|
Going off of the bitbucket implementation, support gitlab for
component@1
See related issue on
component(1)
.The text was updated successfully, but these errors were encountered: