Closed djjuhasz closed 3 months ago
Describe the bug
Running make golines exits with an error:
make golines
[2024-03-27 14:57:09] FATAL Error formatting source: exec: "goimports": executable file not found in $PATH make: *** [Makefile:80: golines] Error 1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The golines line formatter should run without error
Screenshots
Additional context
I just moved to a new development computer, with a new install of Go 1.22.1.
Results of make env (with my home directory name redacted):
make env
❯ make env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/dxxxx/.cache/go-build' GOENV='/home/dxxxx/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/home/dxxxx/go/pkg/mod' GONOPROXY='gitlab.artefactual.com' GONOSUMDB='gitlab.artefactual.com' GOOS='linux' GOPATH='/home/dxxxx/go' GOPRIVATE='gitlab.artefactual.com' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.1' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/home/dxxxx/Artefactual/artefactual-sdps/enduro/go.mod' GOWORK='/home/dxxxx/Artefactual/artefactual-sdps/enduro/go.work' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build29063697=/tmp/go-build -gno-record-gcc-switches'
Describe the bug
Running
make golines
exits with an error:To Reproduce
Steps to reproduce the behavior:
make golines
Expected behavior
The golines line formatter should run without error
Screenshots
Additional context
I just moved to a new development computer, with a new install of Go 1.22.1.
Results of
make env
(with my home directory name redacted):