Go mod can't be specified
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 15 May 2022 12:42:11 +0000 (13:42 +0100)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 15 May 2022 12:42:11 +0000 (13:42 +0100)
Forwarded: no
Last-Update: 2022-04-01

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 06a5caebbc58b8b6af6bdc5565d774550b1e5533..e8f3a9ce9837c5e1e6a847b11705e6e3c9875e76 100644 (file)
@@ -31,13 +31,13 @@ install:
        @echo '##############################################################'
 
 check-local:
-       $(GO) test -mod=mod ./thrift
+       $(GO) test ./thrift
 
 clean-local:
        $(RM) -rf pkg
 
 all-local:
-       $(GO) build -mod=mod ./thrift
+       $(GO) build ./thrift
 
 EXTRA_DIST = \
        thrift \
index 4b3ecda93e4380091ab69c065770977213851ce8..39d811bfdee2fce88d9e4c282da80faab070b071 100644 (file)
@@ -89,7 +89,7 @@ gopath: $(THRIFT) $(THRIFTTEST) \
        touch gopath
 
 check: gopath
-       $(GO) build -mod=mod \
+       $(GO) build \
                                ./gopath/src/includestest \
                                ./gopath/src/binarykeytest \
                                ./gopath/src/servicestest \
@@ -107,14 +107,14 @@ check: gopath
                                ./gopath/src/duplicateimportstest \
                                ./gopath/src/equalstest \
                                ./gopath/src/conflictargnamestest
-       $(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 391c84a08c29719b21fbe9c38e9ad31a40ee7a5a..44bc6e245fdb36434fbed0080b246fb8fa5b031d 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 d7db957af496cf80dd5d1cc3eb89a9ad0459c4e1..56d392385026008a325723cbd9436299b213239a 100644 (file)
@@ -37,13 +37,13 @@ gopath: $(THRIFT) ThriftTest.thrift
        touch gopath
 
 bin/testclient: gopath
-       GOPATH=`pwd` $(GO) install -mod=mod ./src/bin/testclient
+       GOPATH=`pwd` $(GO) install ./src/bin/testclient
 
 bin/testserver: gopath
-       GOPATH=`pwd` $(GO) install -mod=mod ./src/bin/testserver
+       GOPATH=`pwd` $(GO) install ./src/bin/testserver
 
 bin/stress: gopath
-       GOPATH=`pwd` $(GO) install -mod=mod ./src/bin/stress
+       GOPATH=`pwd` $(GO) install ./src/bin/stress
 
 clean-local:
        $(RM) -r src/gen src/github.com/golang src/thrift bin pkg gopath ThriftTest.thrift
@@ -51,7 +51,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