x/text/cmd/gotext: generated files keep changing when there is no code change #33552
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run gotext to create a message catalog.
gotext -srclang=en update -out=catalog/catalog.go -lang=en,el
What did you expect to see?
catalog/catalog.go should stay the same if nothing is changed.
locales/en/out.gotext.json and locales/el/out.gotext.json files stays the same if no code has been changed.
What did you see instead?
Index value for a string in the messageKeyToIndex in catalog/catalog.go keeps changing every time gotext is run with the same code. This makes development process hard when there are multiple developers and when this files is checked in a repository. We hope that if there are no message changes, this file stays the same.
locales/en/out.gotext.json and locales/el/out.gotext.json files also changed a lot when there is no code changes.
The text was updated successfully, but these errors were encountered: