Makefile: bump go version
This commit is contained in:
parent
25958f0131
commit
d7bfa38796
@ -6,7 +6,7 @@ services:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.11.5
|
- 1.12.1
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
|
5
Makefile
5
Makefile
@ -22,7 +22,7 @@ SRC := $(shell find . -type f -name '*.go' -not -path "./vendor/*")
|
|||||||
GO_FILES ?= $$(find . -name '*.go' -not -path './vendor/*')
|
GO_FILES ?= $$(find . -name '*.go' -not -path './vendor/*')
|
||||||
GO_PKGS ?= $$(go list ./... | grep -v "$(PKG)/vendor")
|
GO_PKGS ?= $$(go list ./... | grep -v "$(PKG)/vendor")
|
||||||
|
|
||||||
BUILD_IMAGE ?= golang:1.11.5-alpine
|
BUILD_IMAGE ?= golang:1.12.1-alpine
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
@ -37,9 +37,8 @@ $(BINS): $(SRC) go.mod
|
|||||||
-w /$(PROJECT) \
|
-w /$(PROJECT) \
|
||||||
$(BUILD_IMAGE) \
|
$(BUILD_IMAGE) \
|
||||||
/bin/sh -c " \
|
/bin/sh -c " \
|
||||||
rm -rf ./.cache && \
|
|
||||||
GOOS=linux \
|
GOOS=linux \
|
||||||
GOCACHE=./.cache \
|
GOCACHE=/$(PROJECT)/.cache \
|
||||||
CGO_ENABLED=0 \
|
CGO_ENABLED=0 \
|
||||||
go build -mod=vendor -o $@ \
|
go build -mod=vendor -o $@ \
|
||||||
$(LD_FLAGS) \
|
$(LD_FLAGS) \
|
||||||
|
Loading…
Reference in New Issue
Block a user