Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid modules list when using hugo workspace #12154

Open
deining opened this issue Feb 26, 2024 · 0 comments
Open

Invalid modules list when using hugo workspace #12154

deining opened this issue Feb 26, 2024 · 0 comments

Comments

@deining
Copy link
Contributor

deining commented Feb 26, 2024

What version of Hugo are you using (hugo version)?

hugo v0.123.3-a75a659f6fc0cb3a52b2b2ba666a81f79a459376+extended linux/amd64 BuildDate=2024-02-23T17:09:20Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes

Reproduction:

git clone --single-branch -b hugo-workspace https://github.com/deining/hugo-test
cd hugo-test/exampleSite/
hugo mod vendor

Build of the site fails:

hugo
Total in 3 ms
Error: failed to load modules: invalid modules list: "/home/andreas/hugo-test/exampleSite/hugo-test/exampleSite/_vendor/modules.txt"

The only module listed inside the file m̀odules.txt generated from hugo mod vendor does not held version information, which causes hugo to exit prematurely.

Reference: https://discourse.gohugo.io/t/invalid-modules-list-when-using-hugo-workspace/48498

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants