@@ -13,20 +13,16 @@ BUILDTAGS ?= seccomp
1313COMMIT ?= $(shell git describe --dirty --long --always)
1414VERSION := $(shell cat ./VERSION)
1515
16- # TODO: rm -mod=vendor once go 1.13 is unsupported
17- ifneq ($(GO111MODULE ) ,off)
18- MOD_VENDOR := "-mod=vendor"
19- endif
2016ifeq ($(shell $(GO ) env GOOS) ,linux)
2117 ifeq (,$(filter $(shell $(GO) env GOARCH),mips mipsle mips64 mips64le ppc64))
2218 ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
2319 GO_BUILDMODE := "-buildmode=pie"
2420 endif
2521 endif
2622endif
27- GO_BUILD := $(GO ) build -trimpath $(MOD_VENDOR ) $( GO_BUILDMODE ) $(EXTRA_FLAGS ) -tags "$(BUILDTAGS ) " \
23+ GO_BUILD := $(GO ) build -trimpath $(GO_BUILDMODE ) $(EXTRA_FLAGS ) -tags "$(BUILDTAGS ) " \
2824 -ldflags "-X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) $(EXTRA_LDFLAGS ) "
29- GO_BUILD_STATIC := CGO_ENABLED=1 $(GO ) build -trimpath $(MOD_VENDOR ) $( EXTRA_FLAGS ) -tags "$(BUILDTAGS ) netgo osusergo" \
25+ GO_BUILD_STATIC := CGO_ENABLED=1 $(GO ) build -trimpath $(EXTRA_FLAGS ) -tags "$(BUILDTAGS ) netgo osusergo" \
3026 -ldflags "-w -extldflags -static -X main.gitCommit=$(COMMIT ) -X main.version=$(VERSION ) $(EXTRA_LDFLAGS ) "
3127
3228.DEFAULT : runc
@@ -73,7 +69,7 @@ unittest: runcimage
7369 $(RUNC_IMAGE ) make localunittest TESTFLAGS=$(TESTFLAGS )
7470
7571localunittest : all
76- $(GO ) test $( MOD_VENDOR ) -timeout 3m -tags " $( BUILDTAGS) " $(TESTFLAGS ) -v ./...
72+ $(GO ) test -timeout 3m -tags " $( BUILDTAGS) " $(TESTFLAGS ) -v ./...
7773
7874integration : runcimage
7975 $(CONTAINER_ENGINE ) run $(CONTAINER_ENGINE_RUN_FLAGS ) \
0 commit comments