-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Normalize Gitlab urls #908
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this—definitely good to have. I'm a bit bothered by how different the GitHub and GitLab logic appears to be at this point given that they seem like they should do very similar things. Is there any chance they can be made to mirror each other better or maybe even share logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much cleaner! Thank you for the lovely refactor.
71e65a6
to
3daa7b0
Compare
bors try |
tryBuild succeeded |
Would be great to get rid of the deprecations. |
Ok, so I feel bad because I think I may have suggested the current API in this PR, but it seems like using keyword arguments might be better. In other words something like this signature: setprotocol!(;
protocol::Union{Nothing, AbstractString} = nothing,
domain::Union{Nothing, AbstractString} = nothing,
user::Union{Nothing, AbstractString} = (protocol == "ssh" ? "git" : nothing),
) That doesn't quite feel orthogonal either though. Argh, this is a bit tricky... Also, did we have |
Yes |
8c9c706
to
d3f03a7
Compare
@StefanKarpinski Is there anything I should do? |
I think this looks good. Hopefully we'll use a centralized server with a consistent URL scheme instead in the future so that this becomes unnecessary. We'll discuss on the next Pkg triage call and make a decision on this. |
bors r+ |
Revisiting, this API seems ok with me. |
Build failed |
d3f03a7
to
8d1f449
Compare
bors r+ |
Crap, this should have been squashed. |
:( the negative with Bors |
Allows gitlab urls to be normalized by a separate protocol.