Replace git.apache.org imports with github.com
Client: go
diff --git a/compiler/cpp/src/thrift/generate/t_go_generator.cc b/compiler/cpp/src/thrift/generate/t_go_generator.cc
index 0807efb..235a0b7 100644
--- a/compiler/cpp/src/thrift/generate/t_go_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_go_generator.cc
@@ -61,7 +61,7 @@
*/
bool format_go_output(const string& file_path);
-const string DEFAULT_THRIFT_IMPORT = "git.apache.org/thrift.git/lib/go/thrift";
+const string DEFAULT_THRIFT_IMPORT = "github.com/apache/thrift/lib/go/thrift";
static std::string package_flag;
/**
diff --git a/lib/go/README.md b/lib/go/README.md
index debc9ac..ce6d5ed 100644
--- a/lib/go/README.md
+++ b/lib/go/README.md
@@ -29,7 +29,7 @@
In following Go conventions, we recommend you use the 'go' tool to install
Thrift for go.
- $ go get git.apache.org/thrift.git/lib/go/thrift/...
+ $ go get github.com/apache/thrift/lib/go/thrift/...
Will retrieve and install the most recent version of the package.
diff --git a/tutorial/go/Makefile.am b/tutorial/go/Makefile.am
index 87a8f5a..bd57d65 100644
--- a/tutorial/go/Makefile.am
+++ b/tutorial/go/Makefile.am
@@ -22,15 +22,15 @@
all-local: gen-go/tutorial/calculator.go
-check: src/git.apache.org/thrift.git/lib/go/thrift thirdparty-dep
+check: src/github.com/apache/thrift/lib/go/thrift thirdparty-dep
$(THRIFT) -r --gen go$(COMPILER_EXTRAFLAG) $(top_srcdir)/tutorial/tutorial.thrift
cp -r gen-go/* src/
GOPATH=`pwd` $(GO) build -o go-tutorial ./src
GOPATH=`pwd` $(GO) build -o calculator-remote src/tutorial/calculator-remote/calculator-remote.go
-src/git.apache.org/thrift.git/lib/go/thrift:
- mkdir -p src/git.apache.org/thrift.git/lib/go
- ln -sf $(realpath $(top_srcdir)/lib/go/thrift) src/git.apache.org/thrift.git/lib/go/thrift
+src/github.com/apache/thrift/lib/go/thrift:
+ mkdir -p src/github.com/apache/thrift/lib/go
+ ln -sf $(realpath $(top_srcdir)/lib/go/thrift) src/github.com/apache/thrift/lib/go/thrift
thirdparty-dep:
diff --git a/tutorial/go/src/client.go b/tutorial/go/src/client.go
index 1d658b9..e3ebe00 100644
--- a/tutorial/go/src/client.go
+++ b/tutorial/go/src/client.go
@@ -25,7 +25,7 @@
"fmt"
"tutorial"
- "git.apache.org/thrift.git/lib/go/thrift"
+ "github.com/apache/thrift/lib/go/thrift"
)
var defaultCtx = context.Background()
diff --git a/tutorial/go/src/main.go b/tutorial/go/src/main.go
index 63154e3..7730d7b 100644
--- a/tutorial/go/src/main.go
+++ b/tutorial/go/src/main.go
@@ -22,7 +22,7 @@
import (
"flag"
"fmt"
- "git.apache.org/thrift.git/lib/go/thrift"
+ "github.com/apache/thrift/lib/go/thrift"
"os"
)
diff --git a/tutorial/go/src/server.go b/tutorial/go/src/server.go
index e4c4b97..95708eb 100644
--- a/tutorial/go/src/server.go
+++ b/tutorial/go/src/server.go
@@ -22,7 +22,7 @@
import (
"crypto/tls"
"fmt"
- "git.apache.org/thrift.git/lib/go/thrift"
+ "github.com/apache/thrift/lib/go/thrift"
"tutorial"
)