You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Projects that share package caches (#3, #240) get them on runners with the Docker or Apple container driver, and with the process driver. On a Lima runner, their sessions download everything again, and the session's log says " keeps no package caches with the lima driver, so this session's package managers download what they need".
How it works now
crates/fctl-host/src/driver/mod.rs: Driver::cache_spot returns None for Lima.
crates/fctl-host/src/driver/lima.rs: every VM fctl makes gets ISOLATED over Lima's template, which takes all of the template's mounts away (they gave each VM the host's home directory). It applies at limactl clone, and again with limactl edit before a VM that exists starts.
What should happen
The VMs of projects that share caches mount the project's cache directory, <data dir>/caches/<project id> as with Apple's container, writable at /var/cache/fctl, and no other host path: a .mounts entry in the --set expression at clone and at limactl edit.
Check which mount type Lima uses there (virtiofs with vz; 9p or reverse-sshfs with qemu), that the VM's user can write to it, and how quickly package managers work on it.
Driver::cache_spot gives Lima that directory, and the docs stop saying "not Lima".
Compatibility
Hosts only: no protocol or control plane change. A VM made before keeps no mount until its session gets a new one.
Activity
feat: share package caches between a project's sessions on each runner (