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

hugo: vendor modules before building page #7

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

l-zeuch
Copy link
Collaborator

@l-zeuch l-zeuch commented Jan 22, 2024

Vendor hugo modules into _vendor/ before building the page in release
mode (i.e. with hugo).

Reportedly, hugo tends to fail with odd errors along the lines of
"Permission denied" when trying to build the site, due to some weird
file permissions on the (elsewhere) vendored module files.

Testing has concluded that running hugo mod vendor before building the
page fixes this issue as far as I can tell. Adjust the build
instructions in the README.md file to reflect this oddity.

Closes #6 ("Fix Hugo Builds For Good").

Signed-off-by: Luca Zeuch [email protected]

Vendor hugo modules into `_vendor/` before building the page in release
mode (i.e. with `hugo`).

Reportedly, hugo tends to fail with odd errors along the lines of
"Permission denied" when trying to build the site, due to some weird
file permissions on the (elsewhere) vendored module files.

Testing has concluded that running `hugo mod vendor` before building the
page fixes this issue as far as I can tell. Adjust the build
instructions in the README.md file to reflect this oddity.

Closes #6 ("Fix Hugo Builds For Good").

Signed-off-by: Luca Zeuch <[email protected]>
@l-zeuch l-zeuch merged commit 84acecc into master Jan 22, 2024
4 checks passed
@l-zeuch l-zeuch deleted the build/hugo-mod-vendor branch January 22, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Hugo Builds For Good
1 participant