From: Bruno Haible Date: Tue, 5 Aug 2025 06:35:42 +0000 (+0200) Subject: tests: Fix a lang-go failure. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b214284bcb594afe11c185e4a69eb61ff7b1a3a9;p=thirdparty%2Fgettext.git tests: Fix a lang-go failure. * gettext-tools/tests/lang-go: Add workaround against "go: GOPROXY list is not the empty string, but contains no entries" error. --- diff --git a/gettext-tools/tests/lang-go b/gettext-tools/tests/lang-go index bfb681290..27d4648a4 100644 --- a/gettext-tools/tests/lang-go +++ b/gettext-tools/tests/lang-go @@ -57,7 +57,16 @@ func main () { } EOF -${GO} mod download github.com/leonelquinteros/gotext +${GO} mod download github.com/leonelquinteros/gotext || { + # Attempt to fix an error + # "go: GOPROXY list is not the empty string, but contains no entries" + # The precise cause of this error is not known, but it appears to be a + # version mismatch. (Between what? The 'go' command? A nonexistent go.env + # file? The $HOME/go/ cache?) The workaround is from + # . + unset GOROOT + ${GO} mod download github.com/leonelquinteros/gotext +} : ${GOCOMP="/bin/sh ../../gocomp.sh"} ${GOCOMP} program.go 2>prog.err \