From ea49c77c5f0e4416503453c49bb3aa8e340f307c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Budnik?= Date: Tue, 7 Jan 2020 14:28:39 +0100 Subject: [PATCH 1/2] added explicit gin get to make sure validator package is fetched before other packages are --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 2652735..413b531 100755 --- a/setup.sh +++ b/setup.sh @@ -3,5 +3,7 @@ # this is for dockerhub failing on fetching packages from gopkg.in # travis resolves this by 3 retries so adapting 3 retries here as well for i in {1..3}; do + # explicit gin get makes sure validator package is fetched before other packages are fetched + go get -v github.com/gin-gonic/gin go get -t -v ./... && break || sleep 15; done From 82eb467f51ea37a2e886d9ca1351d80c32eb4fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Budnik?= Date: Tue, 7 Jan 2020 14:37:27 +0100 Subject: [PATCH 2/2] added fetching go-gin before fetching migrator --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 6edff49..c398e35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ ARG SOURCE_BRANCH # build migrator RUN apk add git +RUN go get -v github.com/gin-gonic/gin RUN go get -d -v github.com/lukaszbudnik/migrator RUN cd /go/src/github.com/lukaszbudnik/migrator && git checkout $SOURCE_BRANCH && ./setup.sh RUN cd /go/src/github.com/lukaszbudnik/migrator && \