Skip to content

Resolve and validate tool versions against the installed parent version #7669

Description

@viceice

Tools with a parent (npm tools and vp on node, pip tools on python, gems on ruby, gradle/maven/sbt on java, composer on php, elixir on erlang, …) only check that some parent version is installed (install-tool.service.ts, MissingParent). Neither version resolution nor installation looks at which parent versions the tool actually supports. So install-tool can install a version that doesn't run on the current parent, or resolve latest to a release requiring a newer runtime, and the failure only shows up later. This came up in #7338 for Vite+, which needs a supported Node range for vp sync-versions.

Proposal:

  • Resolve against the parent: when resolving latest or a partial version, skip releases whose declared runtime range excludes the current parent version, where the registry provides it:
    • npm: engines.node, already present in the abbreviated metadata the npm resolver fetches
    • PyPI: requires_python, already parsed in python/schema.ts but unused
    • RubyGems: required_ruby_version
  • Validate on install: reject an explicitly requested version whose range excludes the installed parent, with a clear error, instead of installing it and failing at runtime.
  • Tools without registry metadata (e.g. gradle/maven on java, buildx on docker): optionally a static minimum parent version per tool service.

Open questions: whether an incompatible exact version should fail or only warn (Renovate pins exact versions), and how to treat a missing or unparseable range (probably: allow).

(Issue drafted by Claude Opus 5.5 in Claude Code on behalf of @viceice.)

Activity

  1. added
    type:feature
    status:ready
    on Oct 8, 2026
  2. added theissue type on Oct 8, 2026
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

    status:readytype:feature

    Fields

    Priority

    Medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions