andyw8
December 3, 2023, 7:36pm
1
Hello, I’m wondering if you would consider adding support for the .tool-versions
file, as used by asdf for setting versions of Ruby, Node, etc.
It is widely supported by GitHub, e.g.:
## Working with lockfiles
All supported package managers recommend that you **always** commit the lockfile, although implementations vary doing so generally provides the following benefits:
- Enables faster installation for CI and production environments, due to being able to skip package resolution.
- Describes a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.
- Provides a facility for users to "time-travel" to previous states of `node_modules` without having to commit the directory itself.
- Facilitates greater visibility of tree changes through readable source control diffs.
In order to get the most out of using your lockfile on continuous integration follow the conventions outlined below for your respective package manager.
### NPM
Ensure that `package-lock.json` is always committed, use `npm ci` instead of `npm install` when installing packages.
**See also:**
- [Documentation of `package-lock.json`](https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json)
- [Documentation of `npm ci`](https://docs.npmjs.com/cli/v8/commands/npm-ci)
### Yarn
This file has been truncated. show original
1 Like
al_ps
December 5, 2023, 12:04pm
2
Hi,
Please feel free to add that as a feature request to our feedback site , so that the team and other customers can review it.
However, we already have mechanisms for specifying language versions on our Native Runtimes, based on common supported files, e.g. for Ruby (.ruby-version
, Gemfile
) & Node (.node_version
, package.json
, etc.). My first thought is that a projects .tool-versions
file may specify tools that aren’t configurable on Render Native Runtimes, which could potentially cause confusion.
Alan
1 Like
system
Closed
January 2, 2024, 7:37pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.