cmd/go: does go module support ignoring one sub-directory? #31584
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?go1.12.4
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputfGOARCH="amd64"
GOBIN=""
GOCACHE="/Users/andy/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/andy/workspace/gopath"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.4/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/cg/3770ch_93sj65nvnr6t4rbtm0000gn/T/go-build670995852=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
we need to use a sub-directory called
"test" and the sub-directory contains one Gopkg.toml itself.
and it works in the dep tool.
but after we're trying to switch to use go module. then go mod will scans the "test" folder for us, and some extra(expecially the incompatable packages) are added automatically.
is there one way to put some ignorant logic into the go mod tidy or scanning logic here?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: