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

Setting custom cache directory in docker image leads to absolute directory error #12960

Closed
Int-Circuit opened this issue Oct 17, 2024 · 0 comments

Comments

@Int-Circuit
Copy link

What version of Hugo are you using (hugo version)?

hugo-docker:latest

Does this issue reproduce with the latest release?

Yes.

Steps to reproduce the bug.

  • Create .gitlab.ci.yaml with job to deploy/test hugo website
  • Specify custom cache dir using HUGO_CACHEDIR: cache/test as global variable (required as Gitlab CI runner cannot write to /cache/ due to permissions errors)
  • Get the following error:
Error: failed to create config from result: failed to decode "caches": "cache/test must resolve to an absolute directory

Mitigations to this problem

Please document the configuration variable of the Docker image.

@bep bep added this to the v0.136.2 milestone Oct 17, 2024
@bep bep closed this as completed in b5852d0 Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants