Go mod can't be specified
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Wed, 28 Sep 2022 17:05:02 +0000 (18:05 +0100)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Wed, 28 Sep 2022 17:05:02 +0000 (18:05 +0100)
Forwarded: no
Last-Update: 2022-09-22

Just delete those from Go invocation.

Gbp-Pq: Name go_no_mod.patch

lib/go/Makefile.am
lib/go/test/Makefile.am
lib/go/test/fuzz/Makefile.am
test/go/Makefile.am

index 788a0539b83efe3fb653dc3852de404dc8013ad5..c13f2ed5c75eb6cd68577820c4c76562749c954d 100644 (file)
@@ -39,14 +39,14 @@ install:
 # NOTE: We have to disable stdmethods in go vet until
 # https://github.com/golang/go/issues/52445 is fixed.
 check-local:
-       $(GO) vet -mod=mod -stdmethods=false github.com/apache/thrift/lib/go/thrift
-       $(GO) test -mod=mod ./thrift
+       $(GO) vet -stdmethods=false github.com/apache/thrift/lib/go/thrift
+       $(GO) test ./thrift
 
 clean-local:
        $(RM) -rf pkg
 
 all-local:
-       $(GO) build $(GOBUILDEXTRA) -mod=mod ./thrift
+       $(GO) build $(GOBUILDEXTRA) ./thrift
 
 EXTRA_DIST = \
        thrift \
index d938449a17baeb0852c114ca8a740f02ffc7101a..ae6bb5a0c96d5c30cb5124aeac2344d2eb7b560a 100644 (file)
@@ -103,7 +103,7 @@ gopath: $(THRIFT) $(THRIFTTEST) \
        touch gopath
 
 check: gopath
-       $(GO) build $(GOBUILDEXTRA) -mod=mod \
+       $(GO) build $(GOBUILDEXTRA) \
                                ./gopath/src/includestest \
                                ./gopath/src/binarykeytest \
                                ./gopath/src/servicestest \
@@ -123,14 +123,14 @@ check: gopath
                                ./gopath/src/conflictargnamestest \
                                ./gopath/src/processormiddlewaretest \
                                ./gopath/src/clientmiddlewareexceptiontest
-       $(GO) test -mod=mod github.com/apache/thrift/lib/go/thrift
-       $(GO) test -mod=mod ./gopath/src/tests ./gopath/src/dontexportrwtest
+       $(GO) test github.com/apache/thrift/lib/go/thrift
+       $(GO) test ./gopath/src/tests ./gopath/src/dontexportrwtest
 
 clean-local:
        $(RM) -r gopath ThriftTest.thrift gen-go
 
 client: stubs
-       $(GO) run -mod=mod TestClient.go
+       $(GO) run TestClient.go
 
 EXTRA_DIST = \
        dontexportrwtest \
index a8a810255c9f4f34034734c4ca7602e8b4fcccac..89c299d03d213780011b7998a3d2f99c1c797e6b 100644 (file)
 
 gopathfuzz: $(THRIFT) fuzz.go
        $(THRIFT) -r --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift$(COMPILER_EXTRAFLAG) ../../../../tutorial/tutorial.thrift
-       cd gen-go/shared && go mod init shared
-       cd gen-go/tutorial && go mod init tutorial
+#      cd gen-go/shared && go mod init shared
+#      cd gen-go/tutorial && go mod init tutorial
        touch gopathfuzz
 
 check: gopathfuzz
-       go test -mod=mod -tags gofuzz
+       go test -tags gofuzz
 
 clean-local:
        $(RM) -r gopathfuzz gen-go
index ef00df3a20b1a45f3babe281f5d06e9b04c46d7e..663f1942217deb1261b87d118707e5c4a1d28b5b 100644 (file)
@@ -43,13 +43,13 @@ gopath: $(THRIFT) ThriftTest.thrift
        touch gopath
 
 bin/testclient: gopath
-       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) -mod=mod ./src/bin/testclient
+       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) ./src/bin/testclient
 
 bin/testserver: gopath
-       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) -mod=mod ./src/bin/testserver
+       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) ./src/bin/testserver
 
 bin/stress: gopath
-       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) -mod=mod ./src/bin/stress
+       GOPATH=`pwd` $(GO) install $(GOINSTALLEXTRA) ./src/bin/stress
 
 clean-local:
        $(RM) -r src/gen src/github.com/golang src/thrift bin pkg gopath ThriftTest.thrift
@@ -57,7 +57,7 @@ clean-local:
 check_PROGRAMS: bin/testclient bin/testserver bin/stress
 
 check: gopath genmock
-       $(GO) test -mod=mod -v ./src/common/...
+       $(GO) test -v ./src/common/...
 
 genmock: gopath
        sh genmock.sh