-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow endpoints other than git endpoints? #23
Comments
I believe this was fixed as a result of #78 |
@patrickkettner in which version was it solved? I'm still having this issue
|
this was an update to the registry, rather than the client. So the local version shouldn't matter. What error is it that you are getting? |
I think bower/bower#22 wanted to load a single file that isn't from a git endpoint, so it's more like bower/bower#584. @patrickkettner your patch allows a different protocol, but still a git endpoint. @satazor can you confirm? It was decided in bower/bower#584 (comment) to not support URIs that point to a github releases, but I wonder if it makes sense to revisit the issue. Why not support a URI that points to a binary on any domain? What are the downsides? Security concerns? cc @benschwarz since he had some thoughts on hosting binaries |
I tried the following command:
Same error message appears when using an url with starting with "ssh://". The repository is a private repository outside Github and I don't have access to the "git://" URL. I'm trying to register private modules using private-bower (https://github.com/Hacklone/private-bower) but it looks like currently bower doesn't support different types of URLs. |
|
If that's the case @rayshan , then I think that what's wrong is the error message, don't you think? If the problem is that the provided URL is private and not reachable by bower, then that's what the error message should say. Saying that that "only URLs starting with git:// are accepted" if that's not true is confusing . I'll try with a public repository and see if it works. Thanks! |
@rafayepes absolutely, please see: #88 This issue is still outstanding. I'll change the title to better reflect the true issue at hand. |
I'd like to shed some light on what the current behavior is. I'm trying to provide an internal company project via our own private registry. All of our code is in SVN repositories. When I tried to register my project, I got an Invalid URL format error:
I ended up setting It seems to me that this project is specifically designed to allow private registries to provide whatever they want from any source (especially SVN). So, if not explicitly allowing SVN URLs, there should at least be a good error message, as @rafayepes stated. |
what version of the registry are you using |
Master, pulled today. |
@noahmonster, apologies - I hadn't looked in this in a while, and I remembered how it was setup incorrectly. As of now, the registry is only validates git urls (wether they be It would be trivial to add |
Would it be possible to tie the validation of URLs to some configuration values? More than just the |
PRs welcome! On Tue, Apr 7, 2015, 10:54 AM Noah Solomon [email protected] wrote:
|
Follow up of: bower/bower#22
The text was updated successfully, but these errors were encountered: