script/bootstrap does not install goimports, which script/fmt requires #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while working #175 on a fresh environment:
make fmtfailswith
script/fmt: goimports: not foundafter a successfulmake bootstrap.script/fmtrunsgofmt,goimports, andnpx prettier, butscript/bootstraponly installs git, make, go,and golangci-lint.
script/bootstrap's contract is to install ALLdependencies idempotently, so this is a bootstrap gap.
Remediation: install a pinned
goimportsinscript/bootstrap(e.g.
go install golang.org/x/tools/cmd/goimports@vX.Y.Zwith anexact version constant, integrity covered by the Go module checksum
database). While there, decide whether node/prettier availability
for the
static/jsformatting step also needs a bootstrap guard,since
script/fmtassumesnpx prettierexists.Definition of done:
goimports,make bootstrapfollowed bymake fmtsucceeds@latest), with aversion comment per
REPO_POLICIES.mdmain