Skip to content

fix(lookup): propose updates for .nvmrc, .node-version and .terraform-version - #255

Merged
sweepies merged 1 commit into
mainfrom
fix/version-file-updates
Nov 11, 2026
Merged

sweepies merged 1 commit into
mainfrom
fix/version-file-updates

Conversation

@sweepies

@sweepies sweepies commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Bug 1 from design consult 4.

.nvmrc, .node-version and .terraform-version extract as Npm/Terraform + Toolchain. They fell under the supported-runtime rule meant for ranged constraints, which gives a preserve default and skips every candidate, so version files got no updates by default. guide/versioning.md promised that only for ranged constraints.

The supported-runtime rule (supported_runtime in crates/lookup/src/lib.rs, used by the default in effective, the candidate loop and the lowest-fix loop) now applies only when the declaration's version scheme can express a range:

  • engines.node (Semver) and required_version (Hashicorp) keep today's behaviour.
  • A version file parses as a bare Loose version, so it is proposed like any installed pin and follows the usual versions default (exact).

The split is decided from the scheme, which is what the declaration can say, not from file names.

Behaviour change: repositories with these version files get update PRs for them by default.

Test: pinned_version_files_get_no_update becomes version_files_update_like_pins, with patch, minor and major proposals for .nvmrc and .terraform-version. The ranged cases stay pinned by a_terraform_toolchain_constraint_proposes_nothing and runtime_support_intervals_are_observed_without_spurious_exact_pins, unchanged.

Corpus snapshot: unchanged. The corpus has no version files, and its three ranged toolchain rows are identical.

Docs: guide/versioning.md (the toolchain split). Renovate updates .nvmrc too, so this closes a gap and needs no departure note.

View guided diff Turn on auto-fix

`.nvmrc`, `.node-version` and `.terraform-version` are `Toolchain`
dependencies, so the supported-runtime rule gave them the `preserve`
default and skipped every candidate: a file pinning the installed
runtime never got an update.

The rule now applies only to declarations whose scheme can express a
range — `engines.node` and `required_version` keep `preserve`; a version
file's bare version is an installed pin, proposed like any other.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula fac62e5 Commit Preview URL

Branch Preview URL
Nov 11 2026, 07:40 AM

@sweepies
sweepies merged commit 4e238d9 into main Nov 11, 2026
13 checks passed
@sweepies
sweepies deleted the fix/version-file-updates branch November 11, 2026 07:46
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant