peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.37k stars 80 forks source link

support: the default cachedir seems incorrect without `actions/setup-go` step #645

Closed razonyang closed 2 weeks ago

razonyang commented 3 months ago

Checklist

Describe your question

I noticed that my workflow always say there is no Hugo modules cached found. And I create a testing repo for checking the path of cachedir, it's different (/tmp/hugo_cache_runner/) with the one (/home/runner/.cache/hugo_cache) on README.

Relevant links

Public repository: https://github.com/razonyang/github-workflows-testing
YAML config: 
YAML workflow: https://github.com/razonyang/github-workflows-testing/blob/main/.github/workflows/hugo-modules-caching.yml

Relevant log output

image

Additional context.

Full logs are available on https://github.com/razonyang/github-workflows-testing/actions/runs/8252748983/job/22573007579.