Skip to content

Commit

Permalink
Merge pull request #74 from lukaszbudnik/test-v4.0
Browse files Browse the repository at this point in the history
fixing go-playground/validator package fetches
  • Loading branch information
lukaszbudnik authored Jan 7, 2020
2 parents 9f7e815 + 82eb467 commit 300ee8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
2 changes: 2 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 300ee8b

Please sign in to comment.