-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.early-in-cycleA change that should be done early in the 3 month dev cycle.A change that should be done early in the 3 month dev cycle.modules
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
What did you do?
- Given a fresh install of
go
, there are no files downloaded in$GOPATH/pkg/mod
. - I cloned a repo that uses the new Go 1.11 modules with vendored dependencies
- I executed
go run main.go
to run the application.
What did you expect to see?
- the application ran without downloading external dependencies.
What did you see instead?
- The go tool downloaded all dependencies to
$GOPATH/pkg/mod
, despite the fact that the dependencies were vendored
I know this can easily be fixed by instead go run -mod=vendor main.go
, but because the go tool is now being advertised as "context aware", I think this would be a good QoL change.
rasky, HuiiChong, FiloSottile, ondrej-fabry, amenzhinsky and 161 moretmthrgdondrajz, docmerlin, niaow, AlekSi, creker and 28 morejeffizhungry, lfaoro, memorycancel and ifnotak
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.early-in-cycleA change that should be done early in the 3 month dev cycle.A change that should be done early in the 3 month dev cycle.modules