profile
viewpoint

Ask questionsvendor/golang.org/x/xerrors/adaptor_go1_13.go:16:14: undefined: errors.Frame ...

<!-- Please answer these questions before submitting your issue. Thanks! -->

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

1.13.0

Does this issue reproduce with the latest release?

Yes

What did you do?

Trying to build my project after upgrading to Golang 1.13.0

And I get those errors:

vendor/golang.org/x/xerrors/adaptor_go1_13.go:16:14: undefined: errors.Frame
vendor/golang.org/x/xerrors/format_go1_13.go:12:18: undefined: errors.Formatter

I saw a related issue there: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240319

But I don't understand what could help me to fix? It seems on Golang side no?

Thank you,

golang/go

Answer questions sneko

@ianlancetaylor I have deleted all my cache (/go/pkg/mod/ and also /go/src) but the problem persists.

That's the same when building inside a clean Jenkins pipeline.

In my go.sum file I can see:

golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522 h1:bhOzK9QyoD0ogCnFro1m2mz41+Ib0oOhfJnBp5MR4K4=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

😢

EDIT: or maybe you are talking about a manual update somewhere? Like a replace inside the go.mod file? Because in my case, I never made a reference to the xerrors package so I was expecting upgrading to 1.13 and having a fresh environment would make it working.

useful!

Related questions

cmd/link: segmentation fault during mach-o linking hot 3
cmd/go: needs a better error than "missing dot in first path element" when GOROOT is set incorrectly hot 2
x/xerrors: fails to compile on tip hot 1
cmd/go: `go clean <package>` downloads modules hot 1
cmd/cgo error: runtime: unknown pc 0x7fff5c805b86 hot 1
runtime: crash with "invalid pc-encoded table" hot 1
cmd/vet: potential false positive in the "suspect or" check hot 1
cmd/link: showing many ld warnings of "building for macOS, but linking in object file" hot 1
cmd/go: major version without preceding tag must be v0, not v1 - breaks build of github.com/go-check hot 1
runtime: macOS Sierra builders spinning hot 1
cmd/go: Problem using go modules hot 1
cmd/go: "unrecognized import path" for local packages after updating to go1.13 hot 1
cmd/go: "found, but does not contain package" error refers to replaced version instead of its replacement hot 1
cmd/go: 'go get repo@<commit>' succeeds when <commit> is the full hash of an unpublished commit hot 1
x/tools/gopls: format feature doesn't follow `goimports` hot 1
Github User Rank List