protocolbuffers / txtpbfmt

txtpbfmt parses, edits and formats text proto files in a way that preserves comments.
Apache License 2.0
96 stars 19 forks source link

undefined: math.MaxInt #72

Open nhendy opened 1 year ago

nhendy commented 1 year ago

I got the error below when running go get -u github.com/protocolbuffers/txtpbfmt/cmd/txtpbfmt

github.com/protocolbuffers/txtpbfmt/parser

parser/parser.go:1346:12: undefined: math.MaxInt

kssilveira commented 1 year ago

hi, sorry for the problem, this seems to be caused by the Go version, can you try changing it to MaxInt64 which already existed in earlier Go versions? If it fixes your problem I'm happy to approve your change!