gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
76.25k stars 7.55k forks source link

hugo mod vendor: "invalid modules list" error from recently introduced trailing newline in modules.txt #13084

Closed bep closed 1 week ago

bep commented 1 week ago

OK, I have no idea how/what this comes from, but the last few Hugo docs builds have started to fail on Netlify, after this commit by me:

https://github.com/gohugoio/hugoDocs/commit/03e666038cf741ccad96a9052fe01f1fc5f90c04

This is only relevant if you use hugo mod vendor.

jmooring commented 1 week ago

I have no idea how/what this comes from

I'm pretty sure that was me, fixing a conflict using the GitHub UI before merging https://github.com/gohugoio/hugoDocs/pull/2771.

bep commented 1 week ago

Yea, right ... Oh well, can't hurt to make the parser a little more robust.