From fb697c0580b4b6ab0a21ca17e64788b981fb6018 Mon Sep 17 00:00:00 2001 From: Smith A Date: Fri, 21 Jul 2023 23:31:27 +0800 Subject: [PATCH] cmd/gotext: actually use -dir flag gotext has the read -dir flag but is not used. The dir parameter should be passed to pipeline.Config Fixes golang/go#61507 Change-Id: I242a768964fe56c4c7877de9dc487777c6815dae Reviewed-on: https://go-review.googlesource.com/c/text/+/512015 Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Heschi Kreinick Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor --- cmd/gotext/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/gotext/main.go b/cmd/gotext/main.go index f69ea931..ed0f7eca 100644 --- a/cmd/gotext/main.go +++ b/cmd/gotext/main.go @@ -53,6 +53,7 @@ func config() (*pipeline.Config, error) { Supported: getLangs(), TranslationsPattern: `messages\.(.*)\.json$`, GenFile: *out, + Dir: *dir, }, nil }