artefactual-sdps / enduro

Designed to automate the processing of transfers in multiple Archivematica pipelines.
https://enduro.readthedocs.io/
Apache License 2.0
4 stars 3 forks source link

Problem: `make golines` exits with a "goimports" error #899

Closed djjuhasz closed 3 months ago

djjuhasz commented 3 months ago

Describe the bug

Running make golines exits with an error:

[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:

  1. Local enduro working directory, main branch
  2. make golines

Expected behavior

The golines line formatter should run without error

Screenshots

image

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
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'