mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
24 lines
481 B
Markdown
24 lines
481 B
Markdown
### tool resolutions
|
|
|
|
- deterministic `node lts`
|
|
- updateable
|
|
|
|
```sql
|
|
CREATE TABLE IF NOT EXISTS tool_resolutions (
|
|
tool TEXT NOT NULL,
|
|
version TEXT NOT NULL,
|
|
resolved TEXT NOT NULL,
|
|
PRIMARY KEY (tool, version)
|
|
);
|
|
```
|
|
|
|
```console
|
|
$ pre-commit tools autoupdate [--only ...] # update config override versions
|
|
$ pre-commit tools resolve [--only ...] # update resolved versions
|
|
```
|
|
|
|
```yaml
|
|
# in .pre-commit-config.yaml
|
|
tool_resolution:
|
|
node: {lts: '24.2.0'}
|
|
```
|