summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD. Can Celasun <can@dcc.im>2018-10-17 08:44:48 +0200
committerDuru Can Celasun <can@dcc.im>2018-10-19 07:48:56 +0100
commit9ee29516c419b7eaa95ed89a93b135ea1c683576 (patch)
tree31717d7cb66829365cabf159c6a6cbb40de55d38
parent8a130f63e5bd09e5c39f9760ba04b5ea0837ff4c (diff)
downloadthrift-9ee29516c419b7eaa95ed89a93b135ea1c683576.tar.gz
Replace git.apache.org imports with github.com
Client: go
-rw-r--r--compiler/cpp/src/thrift/generate/t_go_generator.cc2
-rw-r--r--lib/go/README.md2
-rw-r--r--tutorial/go/Makefile.am8
-rw-r--r--tutorial/go/src/client.go2
-rw-r--r--tutorial/go/src/main.go2
-rw-r--r--tutorial/go/src/server.go2
6 files changed, 9 insertions, 9 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_go_generator.cc b/compiler/cpp/src/thrift/generate/t_go_generator.cc
index 0807efbe9..235a0b759 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 @@ static const string endl = "\n"; // avoid ostream << std::endl flushes
*/
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 debc9ac68..ce6d5edc1 100644
--- a/lib/go/README.md
+++ b/lib/go/README.md
@@ -29,7 +29,7 @@ Thrift supports Go 1.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 87a8f5a71..bd57d656f 100644
--- a/tutorial/go/Makefile.am
+++ b/tutorial/go/Makefile.am
@@ -22,15 +22,15 @@ gen-go/tutorial/calculator.go gen-go/shared/shared_service.go: $(top_srcdir)/tut
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 1d658b954..e3ebe00df 100644
--- a/tutorial/go/src/client.go
+++ b/tutorial/go/src/client.go
@@ -25,7 +25,7 @@ import (
"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 63154e3b8..7730d7b32 100644
--- a/tutorial/go/src/main.go
+++ b/tutorial/go/src/main.go
@@ -22,7 +22,7 @@ package main
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 e4c4b9707..95708eb87 100644
--- a/tutorial/go/src/server.go
+++ b/tutorial/go/src/server.go
@@ -22,7 +22,7 @@ package main
import (
"crypto/tls"
"fmt"
- "git.apache.org/thrift.git/lib/go/thrift"
+ "github.com/apache/thrift/lib/go/thrift"
"tutorial"
)