profile
viewpoint

Ask questionsx/xerrors: fails to compile on tip

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

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

<pre> $ go version go version devel +385b2e0cac Fri May 24 21:34:53 2019 +0000 darwin/amd64 </pre>

Does this issue reproduce with the latest release?

Yes

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

<details><summary><code>go env</code> Output</summary><br><pre> $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/artyom/Library/Caches/go-build" GOENV="/Users/artyom/Library/Preferences/go/env" GOEXE="" GOFLAGS="-ldflags=-w" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/artyom/go" GOPROXY="https://proxy.golang.org" GOROOT="/Users/artyom/Repositories/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/Users/artyom/Repositories/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/tmp/foo/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/lb/3rk8rqs53czgb4v35w_342xc0000gn/T/go-build219175411=/tmp/go-build -gno-record-gcc-switches -fno-common" </pre></details>

What did you do?

https://play.golang.org/p/CqTSV8-Wcg0

What did you expect to see?

Program compiles.

What did you see instead?

foo ¶ go build
# golang.org/x/xerrors
/Users/artyom/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20190513163551-3ee3066db522/adaptor_go1_13.go:16:14: undefined: errors.Frame
/Users/artyom/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20190513163551-3ee3066db522/format_go1_13.go:12:18: undefined: errors.Formatter
golang/go

Answer questions cuonglm

Changes in master was reverted in https://github.com/golang/go/commit/3e2c522d5c712fa2b1d18a101272abefc7dcb074#diff-c93f2f0db26f58ae432e8d8f1dc9bd73

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
vendor/golang.org/x/xerrors/adaptor_go1_13.go:16:14: undefined: errors.Frame ... 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