-
Notifications
You must be signed in to change notification settings - Fork 18k
x/text: gotext not compatible with Go-1.20.1 #58751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #58737 |
I followed the ticket #58737 , but the problem is not solved! I have updated all modules and the problem persists. Please re-open this issue. |
Please include a self contained reproducer for what you did, with specific versions ("updated" is also unclear). |
You can find my code at https://gitlab.roessner-net.de/croessner/authserv/-/tree/features I have one file, which is in server/hydra.go that uses translations. There is also the go generate line: //go:generate gotext -srclang=en update -out=catalog.go -lang=en,de,fr When I run "go generate" in this folder, the errors appear as shown in this issue. You can see the go.mod and go.sum and vendor files. It should have all latest versions. Does this help a little bit? :-) |
This was only fixed on master, x/text will get a new tag in the next cycle of upgrades |
@croessner did you find any workaround?. I'm using Go-1.21 using Homebrew on Mac (from 1.19) and I have the same exact problem. Edit: In the end, I used the following command line that fixed the issue : |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, the problem started by upgrading 1.19.x to 1.20.1
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
After upgrading Go, I also did:
What did you expect to see?
As I added new strings, I expected to see that texts for German and French would be missing and that the catalog.go file should have been updated.
What did you see instead?
It seems that gotext needs updates for Go 1.20.x
The text was updated successfully, but these errors were encountered: