Commit 358d9f5
committed
fix(ci): redirect mise cache to rootless user home in e2e
With mise now discoverable and runnable, 'mise run' still failed with
'Permission denied (os error 13)' at src/lock_file.rs:37. The CI image sets
MISE_CACHE_DIR=/opt/mise/cache (root-owned), which the openshell-test user
inherits but can only read (a+rX), not write. mise must write tool bin-path
caches (/opt/mise/cache/<tool>/.../bin_paths-*.msgpack) and task lock files
(/opt/mise/cache/lockfiles/*) even with --skip-deps.
Override MISE_CACHE_DIR to the rootless user's home so mise has a writable
cache, keeping the shared /opt/mise tool data dir read-only. The state dir
already defaults to the user's home; MISE_DATA_DIR stays inherited so the
prebuilt toolchain is reused.
Verified locally against ci:latest with CI=true (which makes mise auto-trust
the config, matching CI): the task now renders and runs into
e2e/rust/e2e-podman-rootless.sh with no permission or trust errors.
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>1 parent 3952c4a commit 358d9f5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments