I’m working on splitting our corporate doc portal into modules. It perfectly works on my local machine (MacOS), but fails in Gitlab CI with image mhart/alpine-node:14.17
$ go version
go version go1.21.5 linux/amd64
$ ./hugo version
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740 linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio
$ ./hugo mod get -u github.com/ratanoff/docs-platform
go: finding github.com/ratanoff/docs-platform latest
go: downloading github.com/ratanoff/docs-platform v0.0.0-20231226162903-dde71e156fdc
go: extracting github.com/ratanoff/docs-platform v0.0.0-20231226162903-dde71e156fdc
$ rm -rf ./public/*
$ ./hugo --config=config/main-config.toml,config/tags-config.toml,config/ru.toml
flag provided but not defined: -modcacherw
usage: go mod download [-json] [modules]
Run 'go help mod download' for details.
Total in 9 ms
Error: failed to load modules: failed to download modules: failed to execute 'go [mod download -modcacherw]': failed to execute binary "go" with args [mod download -modcacherw]: flag provided but not defined: -modcacherw
usage: go mod download [-json] [modules]
Run 'go help mod download' for details.
*errors.errorString
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
go.mod in “main” repo:
module gitlab.loc/documentation/xsolla-docs
go 1.21