summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorYuxuan 'fishy' Wang <yuxuan.wang@reddit.com>2022-04-19 14:31:39 -0700
committerYuxuan 'fishy' Wang <fishywang@gmail.com>2022-04-25 16:00:53 -0700
commit8045d82f0d5359cbdc196414f0c1aa4679c4124f (patch)
tree29782b3cd2b3d27a4704dad3b57f47f6cf22bd8f /tutorial
parent88a45ac77518eafb57db08938ecdf38c5fcf7a31 (diff)
downloadthrift-8045d82f0d5359cbdc196414f0c1aa4679c4124f.tar.gz
Update Go versions used in travis and LANGUAGES.md
Per our support policy, drop support of go 1.16 and add support of go 1.18. Also enable go vet in make check, and fix issues reported by go vet.
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/go/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/tutorial/go/Makefile.am b/tutorial/go/Makefile.am
index ed108fd32..e323358fd 100644
--- a/tutorial/go/Makefile.am
+++ b/tutorial/go/Makefile.am
@@ -17,14 +17,20 @@
# under the License.
#
+if GOVERSION_GE_118
+GOBUILDEXTRA = -buildvcs=false
+else
+GOBUILDEXTRA =
+endif
+
gen-go/tutorial/calculator.go gen-go/shared/shared_service.go: $(top_srcdir)/tutorial/tutorial.thrift
$(THRIFT) --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift,package_prefix=github.com/apache/thrift/tutorial/go/gen-go/$(COMPILER_EXTRAFLAG) -r $<
all-local: gen-go/tutorial/calculator.go
check: thirdparty-dep all
- $(GO) build -mod=mod -o go-tutorial ./src
- $(GO) build -mod=mod -o calculator-remote ./gen-go/tutorial/calculator-remote/calculator-remote.go
+ $(GO) build $(GOBUILDEXTRA) -mod=mod -o go-tutorial ./src
+ $(GO) build $(GOBUILDEXTRA) -mod=mod -o calculator-remote ./gen-go/tutorial/calculator-remote/calculator-remote.go
thirdparty-dep: