Skip to content

cmd/go: "go list -m all" hangs for git.apache.org #34016

@ukai

Description

@ukai

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

$ go version
go version go1.12.8 linux/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/gopath/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/gopath"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/workspace/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build417902936=/tmp/go-build -gno-record-gcc-switches"

What did you do?

with warmed go module cache, it is not problem.

It doesn't require git.apache.org/thrift.git module.
e.g. go list -m all doesn't show git.apache.org/thrift.git nor go mod why git.apache.org/thrift.git show 'not need package'.

in go.sum,

git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=

was written.
(probably go.opencensus.io v0.18.0?)

go mod tidy won't clear this entry.

What did you expect to see?

go list -m all didn't hang.

What did you see instead?

go list -m all hangs to try to check git.apache.org/thrift.git
if used with new go module cache.

adding replace git.apache.org/thrift.git => github.com/apache/thrift v0.12.0 could fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions