Skip to content

Make qm init pin the executing CLI version #43

Description

@mariohercules

Problem

qm init claims to write the version it resolved to as an exact dependency. However, packageContent preserves any existing string at dependencies["@yc-software/qm"]:

  • an older exact version
  • a semver range
  • latest
  • a local file: artifact

For registry specifications, the subsequent npm install can therefore install a different CLI from the one that generated the deployment files. This can leave the generated deployment incompatible with its installed CLI.

Expected behavior

qm init should replace registry dependency specifications with cliVersion(), while preserving intentional local package artifacts used by development and packed-artifact tests.

Acceptance criteria

  • Existing exact, ranged, tag, and other registry specifications are replaced with the executing CLI version.
  • Supported local dependency forms remain usable.
  • Tests cover both registry and local dependency inputs.
  • The deployment documentation accurately describes the resulting pin.

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