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

x/vgo: cannot determine module path for legacy source directory #24127

Closed
leonardyp opened this issue Feb 26, 2018 · 2 comments

Comments

@leonardyp
Copy link

commented Feb 26, 2018

Please answer these questions before submitting your issue. Thanks!

What did you do?

bee api demo

cd demo

vgo build

prompt:

vgo: cannot determine module path for legacy source directory /Users/leonard/study/src/demo (outside GOROOT, no import comments)

is there something wrong? what should i do?

System details

go version go1.10 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/leonard/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/leonard/software/gopath:/Users/leonard/work:/Users/leonard/study"
GORACE=""
GOROOT="/Users/leonard/software/goroot/go1.10"
GOTMPDIR=""
GOTOOLDIR="/Users/leonard/software/goroot/go1.10/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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/lc/rc98ljl52657_hvqssvrtvcm0000gn/T/go-build760531520=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOROOT/bin/go version: go version go1.10 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.10
uname -v: Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64
ProductName:	Mac OS X
ProductVersion:	10.13.3
BuildVersion:	17D47

@gopherbot gopherbot added this to the vgo milestone Feb 26, 2018

@ALTree

This comment has been minimized.

Copy link
Member

commented Feb 27, 2018

There's not enough information in this report. Please include a detailed list of steps that can be used to reproduce your issue. What is "bee api demo"? Where are you running the vgo build command?

@ALTree ALTree changed the title x/vgo:vgo build issue x/vgo: cannot determine module path for legacy source directory Feb 27, 2018

@kardianos

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2018

Make sure your go.mod says something like

module "github.com/usr/demo"

@kardianos kardianos closed this Mar 5, 2018

@golang golang locked and limited conversation to collaborators Mar 5, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants
You can’t perform that action at this time.