-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
go1.11 module cannot find module for path xxx.xxx (user defined packages) #27527
Comments
Well the same to me. I am using a self defined package.
|
all right. |
The import path |
@sanguohot,
I'm guessing that your |
@bcmills Yes it is |
In Go 1.11, we want it to be the case that bugs in module mode don't affect folks who are still using |
What was the command-line for the build that failed, and in what directory was it invoked? The |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
export GO111MODULE=on |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11 windows/amd64
Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Administrator\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=E:\WorksSpaces\GoWorkSpaces\clouds\cspentry\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Administrator\AppData\Local\Temp\go-build799184
522=/tmp/go-build -gno-record-gcc-switches
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best
my project is like this
in general.go
package general
const VERSION = "V4.0"
the go.mod in general is
module cloudms.general
the go.mod in cspenrty is
module cloudms.cspentry
require cloudms.general v1.0.0
replace cloudms.general v1.0.0 => ../general
What did you expect to see?
compile success and output is
hello world
What did you see instead?
build clouds/cspentry: cannot find module for path cloudms.general
The text was updated successfully, but these errors were encountered: