go: Packages under rsc.io are no longer available
What version of Go are you using (go version)?
Go 1.12, Go 1.14
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
I don’t think this matters but here it goes. This failed both on my laptop with Go 1.14 and in GitHub Action that uses Go1.12
go env Output
$ go envGO111MODULE=“” GOARCH=“amd64” GOBIN=“” GOCACHE=“/Users/yenlinc/Library/Caches/go-build” GOENV=“/Users/yenlinc/Library/Application Support/go/env” GOEXE=“” GOFLAGS=“” GOHOSTARCH=“amd64” GOHOSTOS=“darwin” GOINSECURE=“” GONOPROXY=“" GONOSUMDB="” GOOS=“darwin” GOPATH=“/Users/yenlinc/go” GOPRIVATE=“*” GOPROXY=“direct” GOROOT=“/usr/local/Cellar/go/1.14.3/libexec” GOSUMDB=“off” GOTMPDIR=“” GOTOOLDIR=“/usr/local/Cellar/go/1.14.3/libexec/pkg/tool/darwin_amd64” GCCGO=“gccgo” AR=“ar” CC=“clang” CXX=“clang++” CGO_ENABLED=“1” GOMOD=“/Users/yenlinc/workplace/yenlinc/amazon-kinesis-streams-for-fluent-bit/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v4/nbxvs8tj4ms68w5ghhnzn_f1ckngqg/T/go-build594642831=/tmp/go-build -gno-record-gcc-switches -fno-common”
What did you do?
Ran go build command
What did you expect to see?
Modules should be fetched successfully and compilation should succeed.
What did you see instead?
Since this morning, 2 packages under rsc.io have been failing:
go build -buildmode c-shared -o ./bin/kinesis.so ./
go: github.com/aws/amazon-kinesis-firehose-for-fluent-bit@v1.4.1 requires
github.com/golang/mock@v1.4.3 requires
rsc.io/quote/v3@v3.1.0: unrecognized import path "rsc.io/quote/v3": reading https://rsc.io/quote/v3?go-get=1: 503 Service Unavailable
$ go mod download
go: finding github.com/aws/amazon-kinesis-firehose-for-fluent-bit v1.2.2-0.20200717080229-e3ffb88e79bb
go: finding github.com/aws/aws-sdk-go v1.33.13
go: finding github.com/lestrrat-go/strftime v1.0.2-0.20200618102204-1b0bc59fa4ab
go: finding github.com/stretchr/objx v0.3.0
go: finding github.com/sirupsen/logrus v1.6.0
go: finding github.com/yuin/goldmark v1.1.33
go: rsc.io/sampler@v1.99.99: unrecognized import path "rsc.io/sampler" (parse https://rsc.io/sampler?go-get=1: no go-import meta tags ())
go: finding golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
go: finding golang.org/x/text v0.3.3
go: finding github.com/google/gofuzz v1.1.0
go: finding gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
go: finding github.com/cenkalti/backoff v2.2.1+incompatible
go: finding golang.org/x/net v0.0.0-20200707034311-ab3426394381
go: finding github.com/fluent/fluent-bit-go v0.0.0-20200707230002-2a28684e2382
go: finding github.com/stretchr/testify v1.6.1
go: finding github.com/json-iterator/go v1.1.10
go: finding gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
go: finding golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae
go: finding golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6
go: finding github.com/golang/mock v1.4.3
go: error loading module requirements
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 18 (9 by maintainers)
@menghanl Fixing rsc.io/quote is being tracked in issue https://github.com/rsc/quote/issues/4.
cc @rsc @dmitshur @toothrot
While this would probably not normally be considered a Go issue, it is breaking the -longtest builders.
e.g., https://storage.googleapis.com/go-build-log/3c347861/linux-amd64-longtest_bb29e807.log
@dmitshur
go versionoutputs:go envoutputs:Content of
go.mod:Commands ran:
One thing I discovered is if I just:
go mod init github.com/aws/amazon-kinesis-firehose-for-fluent-bitgo.modfrom 1.14 to 1.12go buildThen it compiles successfully. But I suspect that’s just because the indirect dependency onrsc.io/samplerandrsc.io/quotewere removedOkay, setting
GOPROXYfixed it for me:Then when I directly download
binaryregexp, it succeeds:rsc.io is working again now (see https://github.com/rsc/quote/issues/4#issuecomment-665300101). Making cmd/go tests not depend on external services is tracked in issue #28856. I don’t think there’s anything else left to do here, so I’ll close this.
@hencrice The
GOPRIVATEenvironment variable ingo envoutput is set to*, which tells the go command to consider all modules as private and not to use the module proxy and checksum database for them.To be able to fetch
rsc.io/quote/v3and other public modules from the mirror, that environment variable will need to be updated to something narrower. See https://golang.org/cmd/go/#hdr-Module_configuration_for_non_public_modules for more information about it.Just wanted to chime in and say that it’s breaking for my builds (
go 1.12) as well:this is mitigated by using the proxy, which you appear to have disabled with
GOPROXY=directbut @rsc probably needs to update their app engine server