summaryrefslogtreecommitdiff
path: root/lib/go/test
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 /lib/go/test
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 'lib/go/test')
-rw-r--r--lib/go/test/Makefile.am8
-rw-r--r--lib/go/test/fuzz/Makefile.am2
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index 2cca411ac..e1cf8cda7 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -17,6 +17,12 @@
# under the License.
#
+if GOVERSION_GE_118
+GOBUILDEXTRA = -buildvcs=false
+else
+GOBUILDEXTRA =
+endif
+
THRIFTARGS = -out gopath/src/ --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift,package_prefix=github.com/apache/thrift/lib/go/test/gopath/src/$(COMPILER_EXTRAFLAG)
THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift
@@ -91,7 +97,7 @@ gopath: $(THRIFT) $(THRIFTTEST) \
touch gopath
check: gopath
- $(GO) build -mod=mod \
+ $(GO) build $(GOBUILDEXTRA) -mod=mod \
./gopath/src/includestest \
./gopath/src/binarykeytest \
./gopath/src/servicestest \
diff --git a/lib/go/test/fuzz/Makefile.am b/lib/go/test/fuzz/Makefile.am
index 391c84a08..a8a810255 100644
--- a/lib/go/test/fuzz/Makefile.am
+++ b/lib/go/test/fuzz/Makefile.am
@@ -33,4 +33,4 @@ EXTRA_DIST = \
fuzz.go \
fuzz_test.go \
go.mod \
- go.sum
+ go.sum