Skip to content

Packages: Make first-apply resolution independent of installed prerequisites #41

Open

Description

@jdevera

Fresh-machine package resolution depends on tools already being present during template rendering.

package_method.tmpl selects the uv method only when lookPath "uv" succeeds. On a machine without uv, packages such as tox and colout have no selected method even though the earlier 030 script is intended to install uv. Templates are rendered before those installation scripts execute, so installing uv later in the same apply does not repair that decision.

There is also no installation method for mise on an APT-only machine: its spec declares only Homebrew and DNF. The mise installation script exits successfully when mise is absent, leaving its declared tools uninstalled.

Implementation reference for the missing APT bootstrap: official mise installation guide.

Suggested change:

  • Resolve the intended installation method from declarations and the supported target platform, independently of whether a bootstrap prerequisite is already on PATH.
  • Provide a supported way to bootstrap mise on APT systems.
  • Install prerequisites before dependent operations, make them discoverable within that apply, and fail clearly when a required prerequisite is unavailable.

Acceptance criteria: exercise initially missing uv/mise on macOS, APT Linux, and DNF Linux; package resolution retains all requested supported packages and one apply installs prerequisites before their dependants.

Related: #24 (installer prerequisites) and #25 (same-run PATH visibility). This issue covers render-time omission and the missing APT mise installation method. Findings are from source review, not a fresh-machine end-to-end run.

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

    bootstrapFresh-machine bootstrap / first-run setupbug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions