cmd/go: golang.org/x/time/rate not resolved by go.mod #31149
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I think so
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
when referencing "golang.org/x/time/rate" in my code, then do
$ GO111MODULE=on go mod tidy
go.mod is updated with this entry:
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c
What did you expect to see?
my project build to pass
What did you see instead?
cmd/verify.go:20:2: cannot find package "golang.org/x/time/rate" in any of:
/usr/local/Cellar/go/1.12/libexec/src/golang.org/x/time/rate (from $GOROOT)
/Users/my.user/work/go-workspace/src/golang.org/x/time/rate (from $GOPATH)
I don't want to use :
$go get golang.org/x/time/rate
which works fine locally
but this should work through CI builds.
the same package commit version (85acf8d2951c) works fine using dep, but not with go.mod.
am I missing something?
note:
using Dep, this entry is added in Gopkg.lock (works fine in projects using Dep):
[[projects]]
| branch = "master"
| digest = "1:9fdc2b55e8e0fafe4b41884091e51e77344f7dc511c5acedcfd98200003bff90"
| name = "golang.org/x/time"
| packages = ["rate"]
| pruneopts = "NUT"
| revision = "85acf8d2951cb2a3bde7632f9ff273ef0379bcbd"
but my go.sum file shows these 2 entries as added:
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c h1:fqgJT0MGcGpPgpWU7VRdRjuArfcOvC4AoJmILihzhDg=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
The text was updated successfully, but these errors were encountered: