Repository navigation
fix(lookup): bun follows npm's toolchain and peer rules; version files report release-line - #256
Merged
Merged
Conversation
Bun shares npm's files, so a bun-enabled repository emits the same node descriptors under Manager::Bun. The supported-runtime and peer rules named Manager::Npm alone, which treated a bun toolchain range as an installed pin and rewrote a ranged peer to the exact target instead of widening it.
A toolchain declaration resolved through the tool listing reported supported-range regardless of scheme, so a version file such as .nvmrc or .terraform-version — an installed pin, not a runtime constraint — was mislabelled. A toolchain whose scheme cannot express a range now reports release-line, matching the .tool-versions pin it is analogous to; ranged constraints (engines.node, required_version) keep supported-range.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 580593a | Commit Preview URL Branch Preview URL |
Nov 11 2026, 08:24 AM |
…st docs and a dev-dependency
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug 2 from design consult 4, plus two follow-ups from the review of #255.
Bun misses npm's rules. With only
bunenabled, the node descriptor emitsManager::Bun, but the supported-runtime rule and the peer rule testedManager::Npm. Soengines.nodewas treated as an installed version, and peer ranges were rewritten to exact pins. Both rules now apply toNpm | Bun(crates/lookup/src/lib.rs:supported_runtime, the peer policy ineffective, the peer widening rewrite, the in-range toolchain keep andresolved_current_version). Bun version files still update like pins (#255). Lockfile behaviour is untouched.Version files report
release-line.crates/engine/src/report.rslabelled any toolchain with a resolved versionsupported-range, including.nvmrc,.node-versionand.terraform-version, which #255 made installed pins. A toolchain whose scheme cannot express a range now reportsrelease-line, as a.tool-versionspin does. Runtime constraints such asengines.nodeandrequired_versionkeepsupported-range.Report JSON change:
resolution.kindfor those version files changes fromsupported-rangetorelease-line.Tests:
pinned_bun_misses_npm_toolchain_and_peer_rulesbecomesbun_follows_npm_toolchain_and_peer_rules: a Bun toolchain^20gets no proposals, and a Bun peer^18widens to^18 || ^19.0.0.a_version_file_pin_reports_release_lineandan_engines_node_constraint_reports_supported_range(engine/tests/resolution.rs), which pin both sides of the label boundary.Docs:
reference/report.md: theresolutionrow separates installed pins from runtime constraints, merged with fix(engine): every lock-resolved version reports resolution: lockfile #254's lockfile wording.guide/versioning.md: a partial version in a version file (.nvmrcholding20) is updated to an exact pin.Corpus snapshot: unchanged. The defaults enable both npm and bun, and the node descriptor emits
Manager::Npmwhen both are enabled, so no corpus dependency is a Bun one.