Skip to content

lc init with uv < 0.12 leaves a half-built project; minimum uv version undocumented #210

Description

@kaghni

On a machine with uv < 0.12, lc init fails partway through and leaves a half-built project. The install docs don't mention the minimum uv version.

Repro (lightcone-cli 0.5.0rc2, Homebrew uv 0.11.7, macOS):

lc init line-fit-demo
Error: `uv lock --project .../line-fit-demo` failed:
error: Required uv version `>=0.12` does not match the running version `0.11.7`

The directory is left with .git, .datalad, astra.yaml, pyproject.toml, data/, results/ and universes/, but no uv.lock or .venv. After that, lc materialize says:

Error: ... is a Lightcone project that has not been built yet — missing uv.lock, .venv. Run `lc init` here first.

Re-running lc init fails the same way, so this message doesn't point at the real fix. With uv 0.12.15 on PATH, lc init . completes the project.

The requirement comes from required-version = ">=0.12" in templates/files/pyproject.toml.tmpl. docs/user/install.md says only to install uv.

Suggestion: check uv --version before scaffolding and refuse with the fix (uv self update / brew upgrade uv), in line with "refusals carry their remedy". Also state the minimum uv version in install.md.

Activity

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