add GO111MODULE=on to Makefile for go 1.12 support
This commit is contained in:
parent
21e8493838
commit
4a3145bfbd
10
Makefile
10
Makefile
@ -26,7 +26,7 @@ usage:
|
|||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -race -cover ./pkg/...
|
GO111MODULE=on go test -race -cover ./pkg/...
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
@./script/test_all.sh
|
@./script/test_all.sh
|
||||||
@ -39,11 +39,11 @@ dev-assets:
|
|||||||
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
|
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
|
||||||
|
|
||||||
dev: dev-assets
|
dev: dev-assets
|
||||||
go build
|
GO111MODULE=on go build
|
||||||
@echo "You can now execute ./pgweb"
|
@echo "You can now execute ./pgweb"
|
||||||
|
|
||||||
build: assets
|
build: assets
|
||||||
go build
|
GO111MODULE=on go build
|
||||||
@echo "You can now execute ./pgweb"
|
@echo "You can now execute ./pgweb"
|
||||||
|
|
||||||
release: clean assets
|
release: clean assets
|
||||||
@ -54,12 +54,12 @@ release: clean assets
|
|||||||
-output "./bin/pgweb_{{.OS}}_{{.Arch}}"
|
-output "./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||||
|
|
||||||
@echo "Building ARM binaries..."
|
@echo "Building ARM binaries..."
|
||||||
GOOS=linux GOARCH=arm GOARM=5 go build \
|
GO111MODULE=on GOOS=linux GOARCH=arm GOARM=5 go build \
|
||||||
-ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \
|
-ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \
|
||||||
-o "./bin/pgweb_linux_arm_v5"
|
-o "./bin/pgweb_linux_arm_v5"
|
||||||
|
|
||||||
@echo "Building ARM64 binaries..."
|
@echo "Building ARM64 binaries..."
|
||||||
GOOS=linux GOARCH=arm64 GOARM=7 go build \
|
GO111MODULE=on GOOS=linux GOARCH=arm64 GOARM=7 go build \
|
||||||
-ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \
|
-ldflags "-s -w -X github.com/sosedoff/pgweb/pkg/command.GitCommit=$(GIT_COMMIT) -X github.com/sosedoff/pgweb/pkg/command.BuildTime=$(BUILD_TIME) -X github.com/sosedoff/pgweb/pkg/command.GoVersion=$(GO_VERSION)" \
|
||||||
-o "./bin/pgweb_linux_arm64_v7"
|
-o "./bin/pgweb_linux_arm64_v7"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user