Skip to content

Commit 3420ca1

Browse files
committed
Drop the -i, it's cleaner
Newer versions of Go do not need -i to not rebuild everything
1 parent 4bd401c commit 3420ca1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth_server/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COMPRESS_BINARY ?= false
44
CA_BUNDLE = /etc/ssl/certs/ca-certificates.crt
55
VERSION = $(shell cat version.txt)
66

7-
BUILDER_IMAGE ?= golang:1.8.0-alpine
7+
BUILDER_IMAGE ?= golang:1.10.0-alpine
88

99
.PHONY: %
1010

@@ -24,7 +24,7 @@ generate:
2424
github.com/cesanta/docker_auth/auth_server/server/...
2525

2626
build:
27-
CGO_ENABLED=0 go build -v -i --ldflags=--s
27+
CGO_ENABLED=0 go build -v --ldflags=--s
2828

2929
ca-certificates.crt:
3030
cp $(CA_BUNDLE) .
@@ -38,8 +38,8 @@ build-release: ca-certificates.crt
3838
umask 0 && govendor sync -v && \
3939
go install -v github.com/cesanta/docker_auth/auth_server/vendor/github.com/jteeuwen/go-bindata/go-bindata && \
4040
make generate && \
41-
CGO_ENABLED=0 go build -v -i --ldflags=--s"
42-
@echo === Built version $(VERSION) ===
41+
CGO_ENABLED=0 go build -v --ldflags=--s"
42+
@echo === Built version $$(cat version.txt) ===
4343

4444
auth_server:
4545
@echo

0 commit comments

Comments
 (0)