Makefile: bump go version

This commit is contained in:
Lucas Servén Marín 2019-03-21 00:27:40 +01:00
parent 25958f0131
commit d7bfa38796
No known key found for this signature in database
GPG Key ID: 586FEAF680DA74AD
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ services:
- docker
go:
- 1.11.5
- 1.12.1
before_install:
- go get -u golang.org/x/lint/golint

View File

@ -22,7 +22,7 @@ SRC := $(shell find . -type f -name '*.go' -not -path "./vendor/*")
GO_FILES ?= $$(find . -name '*.go' -not -path './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
@ -37,9 +37,8 @@ $(BINS): $(SRC) go.mod
-w /$(PROJECT) \
$(BUILD_IMAGE) \
/bin/sh -c " \
rm -rf ./.cache && \
GOOS=linux \
GOCACHE=./.cache \
GOCACHE=/$(PROJECT)/.cache \
CGO_ENABLED=0 \
go build -mod=vendor -o $@ \
$(LD_FLAGS) \