Ask questionsvendor/golang.org/x/xerrors/adaptor_go1_13.go:16:14: undefined: errors.Frame ...
<!-- Please answer these questions before submitting your issue. Thanks! -->
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?
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.
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.