Skip to content

fix: Fix CUE module fetch failure in KRM function container - #142

Merged
lorenzofelletti merged 1 commit into
mainfrom
fix/cue-cache-dir
Jul 24, 2026
Merged

fix: Fix CUE module fetch failure in KRM function container#142
lorenzofelletti merged 1 commit into
mainfrom
fix/cue-cache-dir

Conversation

@lorenzofelletti

Copy link
Copy Markdown
Member

The distroless base image (gcr.io/distroless/static) sets HOME=/nonexistent, which is not writable. When CUE attempts to fetch remote modules at runtime, it tries to create its cache directory under $HOME, resulting in:

mkdir /nonexistent: permission denied

This sets CUE_CACHE_DIR=/tmp/cue-cache to give CUE a writable location for its module cache.

@lorenzofelletti
lorenzofelletti merged commit b05ac14 into main Jul 24, 2026
4 checks passed
@lorenzofelletti
lorenzofelletti deleted the fix/cue-cache-dir branch July 24, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant