Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Revision when replacing local module #43802

Closed
Cookie04DE opened this issue Jan 20, 2021 · 3 comments
Closed

Unknown Revision when replacing local module #43802

Cookie04DE opened this issue Jan 20, 2021 · 3 comments

Comments

@Cookie04DE
Copy link

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

$ go version
go version go1.16beta1 linux/amd64

Does this issue reproduce with the latest release?

Yes.

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

go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/conrad/.cache/go-build"
GOENV="/home/conrad/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/media/conrad/Seagate/Programmieren/Go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/media/conrad/Seagate/Programmieren/Go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/media/conrad/Seagate/Installationen/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/media/conrad/Seagate/Installationen/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build184147953=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I created two modules: A Lib and another.

Lib go.mod:

module github.com/Cookie04DE/Lib

go 1.16

The other go.mod:

module github.com/Cookie04DE/App

go 1.15

require github.com/Cookie04_DE/Lib v0.0.0

replace github.com/Cookie04DE/Lib => ../Lib

I then ran go mod tidy.

What did you expect to see?

Successful completion of the command.

What did you see instead?

This error:

go: github.com/Cookie04_DE/Lib@v0.0.0: reading github.com/Cookie04_DE/Lib/go.mod at revision v0.0.0: unknown revision v0.0.0
@seankhliao
Copy link
Member

you typoed the module name

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For asking questions, see:

@Cookie04DE
Copy link
Author

Where is the typo? As far as I can see all names are consistent.

@Cookie04DE
Copy link
Author

Never mind, I found the typo in the imports of my main.go file.

@golang golang locked and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants