Skip to content

Desktop packaging aborts when the checkout path contains a UUID segment #1466

Closed

Description

@iamtoruk

app/scripts/stage-cli.mjs:78 resolves the CLI package by matching an absolute path prefix against npm ls --parseable. npm redacts UUID-shaped path segments in that output, so on any checkout whose path contains a UUID (common on CI runners and in scratch worktrees) the prefix match finds nothing and packaging aborts with the misleading message "is the root npm installed?".

Reproduce: clone into a directory like /tmp/1a2b3c4d-1111-2222-3333-444455556666/codeburn, npm ci, npm run build, then npm --prefix app run package:arm64.

Fix: match on the package name or on a path with the UUID redaction applied, or read the package location from require.resolve instead of npm ls. Found during the numbers review on 17 Sep; pre-existing on main, not introduced by any open branch.

Activity

  1. added
    bug
    area: ci
    status: confirmed
    on Sep 17, 2026
  2. added a commit that references this issue on Sep 18, 2026
    0f5a334
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

    area: cibugstatus: confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions