# 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 \
touch gopath
check: gopath
- $(GO) build $(GOBUILDEXTRA) -mod=mod \
+ $(GO) build $(GOBUILDEXTRA) \
./gopath/src/includestest \
./gopath/src/binarykeytest \
./gopath/src/servicestest \
./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 \
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
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
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