Skip to content

feat: a way to build a project inside lake check's sandbox without checking it #15282

Open

Description

@kim-em

lake check builds the project inside a bubblewrap sandbox before exporting it and replaying the result through the kernel. For anyone whose project is untrusted input, the sandbox is the valuable part, but it is only reachable by also paying for the export and the kernel replay.

It would be useful to run just the build, under the same sandbox and with the same guarantees: for CI that wants to compile a possibly-malicious project without giving it the runner, where kernel checking either happens later or is not wanted at all.

The alternative today is to reconstruct Lake's sandbox by hand with bwrap, which duplicates the mount and namespace setup in Lake.CLI.Check and breaks whenever that changes.

Context, where lean-action gained a lake check input and the question of what to build where came up:

leanprover/lean-action#190 — feat: add lake-check input for sandboxed independent kernel checks

Activity

  1. Koukyosyumei commented on Oct 1, 2026

    @Koukyosyumei

    This seems quite interesting feature

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions