Skip to content

Commit 16d2abe

Browse files
committed
Dockerfile: upgrade to Go 1.13
Fixes projectcontour#1377 BREAKING CHANGE We build with -mod=readonly so that the build will fail if anything is out of date in our go.mod file. golang/go#30667 changed the behaviour of the go tool to require that go.mod AND go.sum be up to date so this means I cannot use my hack of .gitignoring the go.sum file. This means when you pull this commit you will probably have to delete your local go.sum working copy. If we're lucky then you shouldn't need to change it after that. If we're not lucky, the bloody thing will always be dirty and we'll waste a lot of time telling people to revert their changes to this file. C'est la vie. Signed-off-by: Dave Cheney <[email protected]>
1 parent 5e6500f commit 16d2abe

File tree

4 files changed

+305
-5
lines changed

4 files changed

+305
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ vendor/
44
.vs/
55
.idea/
66
.DS_Store
7-
go.sum
87
# TODO(youngnick): Move these out of the repo root.
98
localenvoyconfig.yaml
109
securelocalenvoyconfig.yaml
@@ -25,4 +24,4 @@ _site
2524
*.log
2625
*.js.map
2726
*.css.map
28-
.ruby-version
27+
.ruby-version

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22
go_import_path: github.com/heptio/contour
33
go:
4-
- 1.12.x
4+
- 1.13.x
55

66
sudo: false
77

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM golang:1.13rc2 AS build
1+
FROM golang:1.13 AS build
22
WORKDIR /contour
33

44
ENV GOPROXY=https://proxy.golang.org
5-
COPY go.mod ./
5+
COPY go.mod go.sum /contour/
66
RUN go mod download
77

88
COPY cmd cmd

0 commit comments

Comments
 (0)