Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 18, 2025

The .tool-versions file is a conventional format from the asdf tool (see https://asdf-vm.com/guide/getting-started.html#_6-set-a-version) and is essentially a simple <tool> <version> mapping.

Turbo87/heroku-buildpack-crates-io@76b621d adjusts our buildpack to read the Node.js and pnpm versions from that files instead of pnpm, which also means that we no longer need to install jq since grep + awk is sufficient. Note that the parser is very basic at the moment and currently does not support trailing comments after the version string.

As for the "why": it has been fairly annoying to locally always have to update the Node.js and pnpm versions to match what crates.io has pinned. This PR also relaxes the engines declarations, so that now only the major version needs to match for local development, while the deployment process and CI are using the pinned versions.

@Turbo87 Turbo87 added the C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear label Dec 18, 2025
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice win!

@Turbo87 Turbo87 merged commit 12e0f41 into rust-lang:main Dec 18, 2025
13 checks passed
@Turbo87 Turbo87 deleted the asdf branch December 18, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants