Skip to content

Instantly share code, notes, and snippets.

@skoowoo
Created September 15, 2014 06:43
Show Gist options
  • Select an option

  • Save skoowoo/ee0134cc04e508875e78 to your computer and use it in GitHub Desktop.

Select an option

Save skoowoo/ee0134cc04e508875e78 to your computer and use it in GitHub Desktop.
go get支持gitlab的patch
--- 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/",
@skoowoo
Copy link
Author

skoowoo commented Sep 15, 2014

可以根据自己的情况,修改patch,重新编译go源码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment