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

go mod //indirect #32951

Closed
coderYPG opened this issue Jul 5, 2019 · 1 comment
Closed

go mod //indirect #32951

coderYPG opened this issue Jul 5, 2019 · 1 comment

Comments

@coderYPG
Copy link

coderYPG commented Jul 5, 2019

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

$ go version
go version go1.11.10 darwin/amd64

Does this issue reproduce with the latest release?

not sure

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

go env Output
$ go env
GOARCH="amd64"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPROXY=""
GORACE=""
GOTMPDIR=""
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-

What did you do?

my example usetestmod directly import testmod .
but i delete the require in go.mod and then run go run main.go
then i run 'cat go.mod' and see //indirect after the require line generate by go

What did you expect to see?

require github.com/xxx/testmod

What did you see instead?

require github.com/xxx/testmod //indirectly

@coderYPG coderYPG closed this as completed Jul 5, 2019
@coderYPG
Copy link
Author

coderYPG commented Jul 5, 2019

i see the issue before

@golang golang locked and limited conversation to collaborators Jul 4, 2020
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

2 participants