Your CI environment is running go generate ./... and the column number reported by gofmt doesn't make any sense for the file you linked to. So the obvious conclusion is that either the blob you linked to is out of date and you'll see the problem locally if you run go generate ./... first, or generating that content in the CI environment is producing different output for some reason.
On Thu, Oct 27, 2022 at 1:47 PM cpu...@gmail.com <cpui...@gmail.com> wrote: > Really strange issue, have been scratching my head for hours now. Consider > https://github.com/evcc-io/evcc/blob/0b8105d36d245a2169961c48e50fbb830fd38147/charger/ocpp_decorators.go. > Absolutely fine imho. Yet gofmt fails, but only on CI: > https://github.com/evcc-io/evcc/actions/runs/3340736849/jobs/5531173685 > with > > gofmt -w -l $(find . -name '*.go') > Error: ./charger/ocpp_decorators.go:9:186: expected declaration, found ')' > > I can't find any reason why this should fail and it doesn't do so locally. > > Any idea would be welcome as that CR has been stuck due to gofmt. > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/8a2e6351-b88a-46ff-917b-af9110aa8aaan%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/8a2e6351-b88a-46ff-917b-af9110aa8aaan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD_GsgpPeaKVtGc5Wv-bco5HPAeJpbuyTDkttQ77%2BAYXWQ%40mail.gmail.com.