mvdan / gofumpt

A stricter gofmt

Home Page:https://pkg.go.dev/mvdan.cc/gofumpt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to install with Go 1.20.3

aka-mj opened this issue · comments

~ > go install mvdan.cc/gofumpt@latest
go: downloading mvdan.cc/gofumpt v0.4.0
go: downloading golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde
go: downloading golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
go: downloading golang.org/x/tools v0.1.12
# internal/goos
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/goexperiment
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/goarch
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/coverage/rtcov
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/race
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/unsafeheader
compile: version "go1.20" does not match go tool version "go1.20.3"
# unicode/utf8
compile: version "go1.20" does not match go tool version "go1.20.3"
# encoding
compile: version "go1.20" does not match go tool version "go1.20.3"
# unicode/utf16
compile: version "go1.20" does not match go tool version "go1.20.3"
# container/list
compile: version "go1.20" does not match go tool version "go1.20.3"
# math/bits
compile: version "go1.20" does not match go tool version "go1.20.3"
# unicode
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/itoa
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/types/errors
compile: version "go1.20" does not match go tool version "go1.20.3"
# github.com/google/go-cmp/cmp/internal/flags
compile: version "go1.20" does not match go tool version "go1.20.3"
# sync/atomic
compile: version "go1.20" does not match go tool version "go1.20.3"
# internal/cpu
compile: version "go1.20" does not match go tool version "go1.20.3"
# runtime/internal/syscall
compile: version "go1.20" does not match go tool version "go1.20.3"
# runtime/internal/atomic
compile: version "go1.20" does not match go tool version "go1.20.3"
Exception: go exited with 1
[tty 118], line 1: go install mvdan.cc/gofumpt@latest
~ > go version
go version go1.20.3 linux/amd64

Your Go install seems to be broken. This is most likely unrelated to gofumpt.