x/text/cmd/gotext: dir flag in gotext is useless #28097
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
)?What did you do?
I try generate locales strings in other folder.
go:generate
tag contains in/cmd/myapp/main.go
and I use flag-dir=./../../
for generating locales string in root of project directory/locales/...
:What did you expect to see?
gotext
use-dir
flag and generate locales strings on specific path (for my case - in project root directory).What did you see instead?
gotext
creates folder with strings inmain.go
directory:/cmd/myapp/locales/...
.Seems like what
-dir
flag just not used (deadcode
):https://github.com/golang/text/blob/905a57155faa8230500121607930ebb9dd8e139c/cmd/gotext/main.go#L40
The text was updated successfully, but these errors were encountered: