Skip to content

Go mod invalid version: unknown revision #40315

Closed
@NilsJPWerner

Description

@NilsJPWerner

What version of Go are you using (go version)?

$ go version
go1.14.5 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/conferencemac/Library/Caches/go-build"
GOENV="/Users/conferencemac/Library/Application Support/go/env"
GOEXE=""
GOFLAGS="-mod=vendor"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY="github.com/eoch-github*"
GONOSUMDB="github.com/eoch-github*"
GOOS="darwin"
GOPATH="/Users/conferencemac/go"
GOPRIVATE="github.com/eoch-github*"
GOPROXY="direct"
GOROOT="/usr/local/Cellar/go/1.14.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/conferencemac/Code/go/bet-loop/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/05/77c57qt56jv_qnkmqh1z8zp40000gn/T/go-build130504489=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go mod vendor go: github.com/xyz/x@v1.0.3 requires
github.com/xyz/y@v1.0.0 requires
github.com/xyz/x@v0.0.0-20200513160722-61d1c48def76 requires
github.com/xyz/y@v0.0.0-20200504191321-8daf8192493e requires
github.com/xyz/x@v0.0.0-20200319170918-0d96343df272: invalid version: unknown revision 0d96343df272

What did you expect to see?

The go mod succeeds

What did you see instead?

I have two programs that have dependencies on each other. One of them seems to have a commit that has gone missing from a few months ago. Because they depend on each other it seems to be impossible to get rid of this historical dependency. How can I get out of this circular dependency?

Each side depends on a client package in the other. That client code has no dependencies. One of them is on a non-master branch as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions