x/tools/stringer: stringer: no value for constant (for Go 1.23) #68882
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go version
go version go1.23.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
After I change
go 1.22
togo 1.23
in mygo.mod
file I have following output$ go install -a golang.org/x/tools/cmd/stringer@latest
$ stringer -type=MessageStatus -trimprefix=MessageStatus
stringer: no value for constant MessageStatusSuccess
In case if I rollback my changes it works fine:
$ git checkout -- ../../../go.mod
$ stringer -type=MessageStatus -trimprefix=MessageStatus
What did you see happen?
I have following code:
I run stringer with
go 1.22
specified in go.mod and it works fine. After I change it toGo 1.23
it started to fail with unclear error.What did you expect to see?
stringer works with go 1.23
The text was updated successfully, but these errors were encountered: