Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Change https urls to git #402

Merged
merged 1 commit into from
Oct 9, 2013
Merged

Change https urls to git #402

merged 1 commit into from
Oct 9, 2013

Conversation

aviks
Copy link
Member

@aviks aviks commented Oct 9, 2013

Fix #400

Change all https:// urls in METADATA to git:// urls

Update tests to enforce git:// and fail https:// urls

I'll merge it if there are no objections.

@@ -11,7 +11,7 @@ for (pkg, versions) in Pkg.Read.available()
path=m.captures[5]
assert (path!=nothing , "Invalid url $url for package $(pkg). Cannot extract path")
scheme=m.captures[2]
assert ( ismatch (r"git", scheme) || ismatch (r"http", scheme), "Invalid url scheme $scheme for package $(pkg). Should be 'git' or 'http[s]'")
assert ( ismatch (r"git", scheme), "Invalid url scheme $scheme for package $(pkg). Should be 'git' ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is really a bit iffy. It's actually fine to use any protocol that git supports. On GitHub specifically, we prefer git:// as the protocol.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you're right the test should be moved to the github block.

StefanKarpinski added a commit that referenced this pull request Oct 9, 2013
Change https urls to git
@StefanKarpinski StefanKarpinski merged commit 362c813 into JuliaLang:devel Oct 9, 2013
@aviks aviks deleted the as/url branch October 9, 2013 23:47
@spayne
Copy link

spayne commented Oct 10, 2013

@aviks
Copy link
Member Author

aviks commented Oct 11, 2013

@spayne That's on the master branch. This change was committed to the devel branch.

See:
https://github.com/JuliaLang/METADATA.jl/blob/master/ExpressionUtils/url
vs
https://github.com/JuliaLang/METADATA.jl/blob/devel/ExpressionUtils/url

I'm assuming the relevant changes will be copied via the remaster script.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants