This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Implement vcs similar to go get #1717
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7f44eb3
Implement vcs similar to go get
outcoldman 4f2cc1b
Update changelog
outcoldman 4f1f5eb
Fix tests. Revert back order
outcoldman ca4c99c
Set order similar to go get
outcoldman c2213dc
Revert "Set order similar to go get"
outcoldman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
/profile.out | ||
/coverage.txt | ||
release/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -396,86 +396,74 @@ var pathDeductionFixtures = map[string][]pathDeductionFixture{ | |
in: "foobar.com/baz.git", | ||
root: "foobar.com/baz.git", | ||
mb: maybeSources{ | ||
maybeGitSource{url: mkurl("https://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("ssh://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("git://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("http://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("https://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("ssh://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("git://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("http://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "foobar.com/baz.git/extra/path", | ||
root: "foobar.com/baz.git", | ||
mb: maybeSources{ | ||
maybeGitSource{url: mkurl("https://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("ssh://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("git://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("http://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("https://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("ssh://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("git://foobar.com/baz")}, | ||
maybeGitSource{url: mkurl("http://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "foobar.com/baz.bzr", | ||
root: "foobar.com/baz.bzr", | ||
mb: maybeSources{ | ||
maybeBzrSource{url: mkurl("https://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("bzr+ssh://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("bzr://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("http://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("https://foobar.com/baz")}, | ||
maybeBzrSource{url: mkurl("bzr+ssh://foobar.com/baz")}, | ||
maybeBzrSource{url: mkurl("bzr://foobar.com/baz")}, | ||
maybeBzrSource{url: mkurl("http://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "foo-bar.com/baz.hg", | ||
root: "foo-bar.com/baz.hg", | ||
mb: maybeSources{ | ||
maybeHgSource{url: mkurl("https://foo-bar.com/baz.hg")}, | ||
maybeHgSource{url: mkurl("ssh://foo-bar.com/baz.hg")}, | ||
maybeHgSource{url: mkurl("http://foo-bar.com/baz.hg")}, | ||
maybeHgSource{url: mkurl("https://foo-bar.com/baz")}, | ||
maybeHgSource{url: mkurl("ssh://foo-bar.com/baz")}, | ||
maybeHgSource{url: mkurl("http://foo-bar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "[email protected]:baz.git", | ||
root: "foobar.com/baz.git", | ||
mb: maybeSources{ | ||
maybeGitSource{url: mkurl("ssh://[email protected]/baz.git")}, | ||
maybeGitSource{url: mkurl("ssh://[email protected]/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "bzr+ssh://foobar.com/baz.bzr", | ||
root: "foobar.com/baz.bzr", | ||
mb: maybeSources{ | ||
maybeBzrSource{url: mkurl("bzr+ssh://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("bzr+ssh://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "ssh://foobar.com/baz.bzr", | ||
root: "foobar.com/baz.bzr", | ||
mb: maybeSources{ | ||
maybeBzrSource{url: mkurl("ssh://foobar.com/baz.bzr")}, | ||
maybeBzrSource{url: mkurl("ssh://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "https://foobar.com/baz.hg", | ||
root: "foobar.com/baz.hg", | ||
mb: maybeSources{ | ||
maybeHgSource{url: mkurl("https://foobar.com/baz.hg")}, | ||
maybeHgSource{url: mkurl("https://foobar.com/baz")}, | ||
}, | ||
}, | ||
{ | ||
in: "git://foobar.com/baz.hg", | ||
root: "foobar.com/baz.hg", | ||
srcerr: errors.New("git is not a valid scheme for accessing hg repositories (path foobar.com/baz.hg)"), | ||
}, | ||
// who knows why anyone would do this, but having a second vcs ext | ||
// shouldn't throw us off - only the first one counts | ||
{ | ||
in: "foobar.com/baz.git/quark/quizzle.bzr/quorum", | ||
root: "foobar.com/baz.git", | ||
mb: maybeSources{ | ||
maybeGitSource{url: mkurl("https://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("ssh://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("git://foobar.com/baz.git")}, | ||
maybeGitSource{url: mkurl("http://foobar.com/baz.git")}, | ||
}, | ||
}, | ||
}, | ||
"vanity": { | ||
// Vanity imports | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We don't actually support fossil - not sure there's much point in adding it.