b049bbeb

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Resolve Go lint tools from GOBIN in run-go-tests (#233)

The script located gci, go-critic, staticcheck, and errcheck under
$(go env GOPATH)/bin, but `go install` honors GOBIN, which our Nix dev shell
sets to bin/.go. The installed binaries therefore landed in GOBIN while the
script looked in GOPATH/bin, so every lint step failed with "No such file or
directory". Resolve the tools from GOBIN when it is set, falling back to
GOPATH/bin otherwise.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/233

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 13s 13s 15s
Eval 20s 58s 58s 1m18s
Build 30s 6m59s 1m26s 1m56s
Suite 2s 8m11s 1m54s 1m56s

Timeline

0s10s30s40s50s1m1m10s1m20s1m30s1m40s1m50s