Re: [go-nuts] 1.19.2: gofmt fails on CI but not locally

66 views
Skip to first unread message

Kurtis Rader

unread,
Oct 27, 2022, 5:58:35 PM10/27/22
to cpu...@gmail.com, golang-nuts
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 <cpu...@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...@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.


--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
Reply all
Reply to author
Forward
0 new messages