Skip to content

Lima sandboxes get no package caches #241

Open

Description

@fctl-sh

What is missing

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.

Session: https://app.fctl.sh/s/ses_01M5MHVTRRP9QZBV3AVHN1EHK6

Activity

  1. added
    enhancement
    host
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhost

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions