Skip to content

Do not create target before build dependency preflight succeeds #120

Closed

Description

@LunaStev

Evidence

src/commands/build.rs creates target/ before calling resolver::resolve. A build, run, or check rejected for a missing or mismatched lockfile can therefore leave a new output directory even though compilation never started.

Acceptance criteria

  • Move target-directory creation after manifest, input, lockfile, and dependency preflight that can fail without compilation.
  • A failed --locked or --offline build/run/check leaves a previously absent target/ absent.
  • Preserve successful artifact placement and existing target contents.
  • Add process-level tests for missing lockfile and unresolved offline dependency.
  • Do not change dry-run's no-output behavior.

Activity

  1. added
    bug
    good first issue
    build
    stability
    on Sep 22, 2026
  2. LunaStev commented on Oct 2, 2026

    @LunaStev
    MemberAuthor

    Verified completed against master 67797f6415f640e8c33f9a072879124b83934f84.

    Build/check/run complete dependency preflight before creating output directories. Tests verify rejected preflight leaves target absent; dry-run creates no build output.

    Evidence: src/commands/build.rs, tests/project_state.rs.

    Master CI run 36963423149 passed all eight jobs, including native Windows, macOS, and Linux tests. Closing as completed.

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

    bugbuildgood first issuestability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions