You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to vendor the tools we need for building and testing, starting with stringer (golang.org/x/tools/cmd/stringer), esc (github.com/mjibson/esc) and dlv (github.com/go-delve/delve/cmd/dlv) using the recipes from issue #25922 .
Installing the tools with go install is fine, all modules are available locally.
stringer and esc work like a breeze, but delve has several issues:
After installing with go install github.com/go-delve/delve/cmd/dlv, go.mod and go.sum have entries for delve:
When I run go mod vendor, I end up with a failure:
$ go mod vendor
go: finding module for package github.com/go-delve/delve
git.wdf.sap.corp/tools imports
github.com/go-delve/delve: module github.com/go-delve/delve@latest found (v1.4.0), but does not contain package github.com/go-delve/delve
$
Running go mod tidy purges the delve-related entries from go.mod and go.sum.
What did you expect to see?
go mod tidy retains / the references to github.com/go-delve/delve and its dependencies go mod vendor provides all delve-related modules in the vendor subdirectory.
What did you see instead?
When I run go mod vendor, I end up with a failure:
$ go mod vendor
go: finding module for package github.com/go-delve/delve
git.wdf.sap.corp/tools imports
github.com/go-delve/delve: module github.com/go-delve/delve@latest found (v1.4.0), but does not contain package github.com/go-delve/delve
$
The vendor subdirectory lacks github.com/go-delve/delve.
Running go mod tidy purges the delve-related entries from go.mod and go.sum.
The text was updated successfully, but these errors were encountered:
Normally, importing a main package is an error, but the tools package never gets built. It's just there so go mod tidy doesn't remove requirements.
Closing this issue because it doesn't seem to be a bug in cmd/go. Gophers Slack (for this topic, the #modules channel) and the go-nuts mailing lists are better places for troubleshooting.
What version of Go are you using (
go version
)?also tried with
go version go1.14 windows/amd64
file1.zip
`
Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I work in an environment that requires vendoring.
I try to vendor the tools we need for building and testing, starting with stringer (golang.org/x/tools/cmd/stringer), esc (github.com/mjibson/esc) and dlv (github.com/go-delve/delve/cmd/dlv) using the recipes from issue #25922 .
Installing the tools with
go install
is fine, all modules are available locally.stringer
andesc
work like a breeze, butdelve
has several issues:go install github.com/go-delve/delve/cmd/dlv
,go.mod
andgo.sum
have entries for delve:go mod vendor,
I end up with a failure:Running
go mod tidy
purges the delve-related entries fromgo.mod
andgo.sum
.What did you expect to see?
go mod tidy
retains / the references togithub.com/go-delve/delve
and its dependenciesgo mod vendor
provides all delve-related modules in thevendor
subdirectory.What did you see instead?
When I run go mod vendor, I end up with a failure:
The
vendor
subdirectory lacksgithub.com/go-delve/delve
.Running
go mod tidy
purges the delve-related entries fromgo.mod
andgo.sum
.The text was updated successfully, but these errors were encountered: