Closed maueroats closed 7 months ago
Reproduces with snap version 0.123.1+git1.6da1d8f37
:
$ hugo version
hugo v0.124.0-DEV-6da1d8f370624b1a3640076b1e60380b0d8b2f92+extended linux/amd64 BuildDate=2024-02-21T08:30:57Z VendorInfo=snap:0.123.1+git1.6da1d8f37
Same failure mode.
The original testing was done with the extended hugo installed from a tarfile on github, so snap was not a possible factor.
I am unable to reproduce the problem with a test repository that loads a remote content module.
$ hugo --cachedir "$PWD/t1234"
hugo: collected modules in 1789 ms
Start building sites …
hugo v0.124.0-DEV-ea0ba9751d9b6a5dec9261676287832717c0ca17+extended linux/amd64 BuildDate=2024-02-22T15:41:43Z
| EN | DE
-------------------+----+-----
Pages | 12 | 6
Paginator pages | 0 | 0
Non-page files | 3 | 0
Static files | 2 | 2
Processed images | 0 | 0
Aliases | 1 | 0
Cleaned | 0 | 0
Works great. Without access to your site troubleshooting is... difficult.
Thanks for looking at this. Sorry I did not think it would fail to reproduce everywhere. The issue reproduces with extended Hugo 0.123.2 and the Docsy demo site. Details and a repository below.
git clone https://github.com/maueroats/hugo-docsy-bugdemo
I started with the Docsy theme demo site, ran the required npm install commands (listed below) and then reproduced the behavior with a freshly downloaded extended Hugo 0.123.2 installed from tarball.
You will know better than me, but I needed these steps:
npm install -D autoprefixer
npm install -D postcss-cli
npm install -D postcss
System: Ubuntu 22.04.3 LTS
I am able to reproduce the problem with your repo using v0.123.2. I cannot reproduce the problem with v0.122.0. So yeah, we either broke or fixed something, but I have a difficult time getting excited about it.
Why would you want to do this?
hugo --cacheDir "$PWD/t1234"
Instead of sharing the cache with other projects on your system?
This smells like a "vendor" directory collision with Go modules.
The #wontFix response is fine with me.
I no longer know why the system was setup that way... done years ago and never touched since. It was set up that way when Hugo got caching.
Possibly because originally the cache was in /tmp
and the system was rebooted often?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Any reason why Hugo 0.123.1 would fail to build my docsy site when the cache file is in the root of the site (the same directory as the site's
config.toml
file)? This worked in the previous version I had installed (0.121 I believe). I verified that this builds fine with 0.119.0 and fails with 0.123.1.Result of failed build:
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Modules
go.mod contains: