Hugolify / hugolify-template

Hugolify is an Hugo template with Hugo theme and Decap CMS
https://www.hugolify.io
MIT License
9 stars 1 forks source link

Build failing when importing modules #11

Closed Mecanik closed 9 months ago

Mecanik commented 9 months ago

Hello,

Thank you for this template. I just tested it on Netlify and when I try to load a module the build fails:

9:40:42 AM: $ yarn build
9:40:42 AM: yarn run v1.22.19
9:40:42 AM: $ hugo --noChmod --gc --minify
9:40:43 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
9:40:43 AM: go: github.com/hugolify/hugolify-theme-pages@upgrade: module github.com/hugolify/hugolify-theme-pages: git ls-remote -q origin in /opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/c45eb38d0d9d7d2f01e38eebdab82a7ecc1414888d17207b0a5dd8818854a388: exit status 128:
9:40:43 AM:     fatal: could not read Username for "https://github.com/": terminal prompts disabled
9:40:43 AM: Confirm the import path was entered correctly.
9:40:43 AM: If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
9:40:43 AM: Total in 247 ms
9:40:43 AM: Error: failed to load modules: failed to get ["-d" "github.com/hugolify/hugolify-theme-pages@upgrade"]: failed to execute "go [get -d github.com/hugolify/hugolify-theme-pages@upgrade]": failed to execute binary "go" with args [get -d github.com/hugolify/hugolify-theme-pages@upgrade]: go: github.com/hugolify/hugolify-theme-pages@upgrade: module github.com/hugolify/hugolify-theme-pages: git ls-remote -q origin in /opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/c45eb38d0d9d7d2f01e38eebdab82a7ecc1414888d17207b0a5dd8818854a388: exit status 128:
9:40:43 AM:     fatal: could not read Username for "https://github.com/": terminal prompts disabled
9:40:43 AM: Confirm the import path was entered correctly.
9:40:43 AM: If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
9:40:43 AM:  *errors.errorString
9:40:43 AM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
9:40:43 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Config tried:

imports:
- path: github.com/hugolify/hugolify-theme-pages

# Core theme
- path: github.com/hugolify/hugolify-theme

# CMS
- path: github.com/hugolify/hugolify-decap-cms
sebousan commented 9 months ago

Hi @Mecanik,

sorry, this is a mistake from our doc. github.com/hugolify/hugolify-theme-pages doesn't exists, pages is available in Core theme directly. So, remove this line - path: github.com/hugolify/hugolify-theme-pages

Mecanik commented 9 months ago

I understand, thank you for clarifying.