Skip to content

Gitlab Hugo template fails CI/CD build with "latest" (112) docker version

if complains about the theme module in the hugo mod init phase.

$ hugo mod init gitlab.com/pages/hugo
Error: failed to load modules: module "github.com/theNewDynamic/gohugo-theme-ananke" not found in "/builds/samiemad/testtest/themes/github.com/theNewDynamic/gohugo-theme-ananke"; either add it as a Hugo Module or store it in "/builds/samiemad/testtest/themes".: module does not exist

Here is a clean repo from template as an example https://gitlab.com/samiemad/testtest/-/jobs/4346565575