]> git.maquefel.me Git - brevno-suite/hugo/commit
cache: Set default cache path based on $USER
authorErica Mays <erica@emays.dev>
Sat, 10 Jun 2023 17:25:07 +0000 (13:25 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Jun 2023 19:33:35 +0000 (21:33 +0200)
commit258884f44fc3ea6e4954936ddeb24e739eb8f58a
tree3f96e643dd97f0ebe275f49daa780dae7954d20a
parent254c2b323cbc74b0decb29e5f7331f4b03914a9e
cache: Set default cache path based on $USER

Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so
that multi-user systems do not have caches that interfere with each
other.  The other cache-choosing logic (e.g. Netlify exceptions,
configuration options) are not affected.

Fixes #7391
16 files changed:
commands/commandeer.go
docs/content/en/commands/hugo.md
docs/content/en/commands/hugo_config.md
docs/content/en/commands/hugo_config_mounts.md
docs/content/en/commands/hugo_mod_clean.md
docs/content/en/commands/hugo_mod_graph.md
docs/content/en/commands/hugo_mod_init.md
docs/content/en/commands/hugo_mod_npm_pack.md
docs/content/en/commands/hugo_mod_tidy.md
docs/content/en/commands/hugo_mod_vendor.md
docs/content/en/commands/hugo_mod_verify.md
docs/content/en/commands/hugo_new_content.md
docs/content/en/commands/hugo_server.md
docs/content/en/getting-started/configuration.md
docs/content/en/templates/data-templates.md
helpers/path.go