Skip to content
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

x/text/cmd/gotext: dir flag has no effect #61507

Closed
miilord opened this issue Jul 21, 2023 · 2 comments
Closed

x/text/cmd/gotext: dir flag has no effect #61507

miilord opened this issue Jul 21, 2023 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@miilord
Copy link

miilord commented Jul 21, 2023

What version of Go are you using (go version)?

$ go version
go version go1.20.5 darwin/arm64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/$USER/Library/Caches/go-build"
GOENV="/Users/$USER/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/$USER/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/$USER/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/opt/homebrew/Cellar/go/1.20.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.20.5/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
AR="ar"
CC="cc"
CXX="c++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ql/c6vc6chx01z6269q2wwdhq3m0000gn/T/go-build4216456255=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I want to store the generated translation files in a specific directory,
so I used the following command

gotext -srclang=en -dir=./Foo update -out=./catalog.go -lang=en,zh

What did you expect to see?

The following directories should be generated

.
├── Foo
│   ├── en
│   │   └── out.gotext.json
│   └── zh
│       └── out.gotext.json
├── catalog.go
└── translations.go

What did you see instead?

.
├── catalog.go
├── locales
│   ├── en
│   │   └── out.gotext.json
│   └── zh
│       └── out.gotext.json
└── translations.go
@gopherbot gopherbot added this to the Unreleased milestone Jul 21, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/512015 mentions this issue: cmd/gotext: fix -dir flag

@heschi heschi added the NeedsFix The path to resolution is known, but the work has not been done. label Jul 21, 2023
@heschi
Copy link
Contributor

heschi commented Jul 21, 2023

cc @mpvl

@seankhliao seankhliao changed the title x/text: missing transmission parameters x/text/cmd/gotext: dir flag has no effect Jul 21, 2023
@golang golang locked and limited conversation to collaborators Jul 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants