Skip to content

"next build" hangs forever when a Hugo build was performed previously #957

Answered by maelvls
maelvls asked this question in Q&A
Discussion options

You must be logged in to vote

To fix the issue, I ran:

git clean -fd
rm -rf themes node_modules

And ./scripts/verify works again.

Details: I found out that it only hangs where there are "lefover" files from Hugo builds. The following will trigger the issue:

git fetch origin refs/pull/901/head:pr-901
git checkout pr-901
npm install
./script/verify-release

git fetch origin refs/pull/927/head:pr-927
git checkout pr-927
rm -rf node_modules
./scripts/verify

The command hangs:

Looking at the state of my git checkout, it seems there are tons of leftovers from a previous Hugo build:

git status # See below output.
Output of "git status" after switching branches
On branch update-uninstall-docs
Untracked files:
  (use "git ad…

Replies: 1 comment

Comment options

maelvls
May 2, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by maelvls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant