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: how to list missing modules for imported packages #25162

dlsniper opened this issue Apr 29, 2018 · 3 comments

x/vgo: how to list missing modules for imported packages #25162

dlsniper opened this issue Apr 29, 2018 · 3 comments


Copy link

@dlsniper dlsniper commented Apr 29, 2018

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

go version go1.10.1 windows/amd64 vgo:2018-02-20.1

Does this issue reproduce with the latest release?


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

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\florin\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\go
set GOROOT=C:\Go1.10
set GOTOOLDIR=C:\Go1.10\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_CFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\florin\AppData\Local\Temp\go-build151584538=/tmp/go-build -gno-record-gcc-switches

What did you do?

vgo list -m

If possible, provide a recipe for reproducing the error.

What did you expect to see?

I would expect to see that or is not a recognized/present module in my project and have a way to add it to go.mod instead.

The only way to get this done currently seems to be running vgo build on the directory, but this means also compiling the application. I would expect to have a way to download missing modules/packages without having to invoke the build command. Maybe I missed it but I can't see anything in help either.

What did you see instead?


While it's great that vgo list - m does not resolve packages and its running really fast, so it shouldn't be modified, maybe a standalone command, vgo list - missing, would make it easier to list what packages are missing.

Thank you.

@gopherbot gopherbot added this to the vgo milestone Apr 29, 2018

This comment has been minimized.

Copy link

@bcmills bcmills commented Apr 30, 2018 says “A side effect of running any vgo command is to update go.mod if necessary,” so it's a bit surprising that vgo list doesn't.

@dlsniper dlsniper changed the title x/vgo: list -m does not list imported packages missing from modules x/vgo: how to list missing modules for imported packages May 1, 2018

This comment has been minimized.

Copy link

@rsc rsc commented Jul 5, 2018

This is almost certainly fixed now. If not now then by CL 121303.


This comment has been minimized.

Copy link

@gopherbot gopherbot commented Jul 6, 2018

Change mentions this issue: cmd/go/internal/vgo: load packages in parallel

@golang golang locked and limited conversation to collaborators Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.