cache go downloads on circleci image
Otherwise go.sum will have to be updated somewhat frequently
@@ -2,6 +2,14 @@ FROM circleci/golang:1.13
RUN sudo apt-get update -yqq && sudo apt-get install -yqq bzr
+WORKDIR /project
+
ENV GO111MODULE="on"
+COPY go.mod go.mod
+COPY go.sum go.sum
+# cache deps before building and copying source so that we don't need to re-download as much
+# and so that source changes don't invalidate our downloaded layer
+RUN go mod download
+
RUN go get github.com/mattn/goveralls
