This is an automated email from the ASF dual-hosted git repository. dcelasun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push: new 9ee2951 Replace git.apache.org imports with github.com 9ee2951 is described below commit 9ee29516c419b7eaa95ed89a93b135ea1c683576 Author: D. Can Celasun <c...@dcc.im> AuthorDate: Wed Oct 17 08:44:48 2018 +0200 Replace git.apache.org imports with github.com Client: go --- compiler/cpp/src/thrift/generate/t_go_generator.cc | 2 +- lib/go/README.md | 2 +- tutorial/go/Makefile.am | 8 ++++---- tutorial/go/src/client.go | 2 +- tutorial/go/src/main.go | 2 +- tutorial/go/src/server.go | 2 +- 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 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 @@ 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 debc9ac..ce6d5ed 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 87a8f5a..bd57d65 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 1d658b9..e3ebe00 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 63154e3..7730d7b 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 e4c4b97..95708eb 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" )