This is a convoluted problem which did not happen on Debian 11 but occurs when setting things up again with Debian 12.
Spack with wire-cell-spack builds go 1.4 which gets used by pip install the wire-cell-python package in the resulting virtual env. Go is needed directly through gojsonet Python bindings and via moo.
The pip install fails due to error:
running build_ext
flag provided but not defined: -buildmode
To fix one can remove from the Spack view the very old go provided by Spack in order to pick up the newer version from the host OS:
rm local/bin/go local/bin/gofmt
A better solution is some mix of: