I was updating dependencies for one of my projects today, when I started getting build failures because TravisCI is unable to find a particular dependency that resides in a private github repo. Previously I was able to pick up the private dependencies just fine, however today my build started failing with the following error:
27.82s$ go mod download go: github.com/RTradeLtdemail@example.com: reading github.com/RTradeLtd/ipfs-routing/go.mod at revision v1.0.6: unknown revision v1.0.6
I’m 110% certain the dependency exists, as I can use it locally, and use it in other projects using TravisCI without a problem.
My .travis file:
language: go go: - 1.14.x env: global: - GO111MODULE=on - GOPRIVATE=github.com/RTradeLtd/* install: - go mod download before_script: - go vet ./... - go build ./... - go test -run xxxx ./... script: - go test -race -short -coverprofile=coverage.txt ./... after_success: - bash <(curl -s https://codecov.io/bash) # cache: # directories: # - $GOPATH/pkg/mod # - $HOME/.cache/go-build