Created
September 15, 2014 06:43
-
-
Save skoowoo/ee0134cc04e508875e78 to your computer and use it in GitHub Desktop.
go get支持gitlab的patch
This file contains hidden or 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
| --- go/src/cmd/go/vcs.go 2014-08-13 11:49:45.000000000 +0800 | |
| +++ /Users/marckywu/local/go/src/cmd/go/vcs.go 2014-09-15 12:41:43.000000000 +0800 | |
| @@ -587,6 +587,24 @@ | |
| check: oldGoogleCode, | |
| }, | |
| + // Gitlab | |
| + { | |
| + prefix: "gitlab.test.com/", | |
| + re: `^(?P<root>gitlab\.test\.com/[A-Za-z0-9_.\-]+/[A-Za-z0-9_.\-]+)(/[A-Za-z0-9_.\-]+)*$`, | |
| + vcs: "git", | |
| + repo: "http://{root}.git", | |
| + ping: false, | |
| + }, | |
| + | |
| // Github | |
| { | |
| prefix: "github.com/", |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以根据自己的情况,修改patch,重新编译go源码。