Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update renovate pre-commit to use lts version of node #647

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

JohnStrunk
Copy link
Owner

@JohnStrunk JohnStrunk commented Oct 24, 2024

Works around renovatebot/pre-commit-hooks#2460 by overriding the version of nodejs that is installed. Inspired by renovatebot/pre-commit-hooks#2460 (comment).

Root cause seems to be that pre-commit defaults to installing the latest version of node if (1) it's not already present or (2) it's running on Windows: https://github.com/pre-commit/pre-commit/blob/611195a088a29821961c5ddae2f4312f748f4a85/pre_commit/languages/node.py#L27-L36
So, when node 23 was released, the renovate hook broke.

Based on pre-commit/pre-commit#3340 and ekalinin/nodeenv#281, I'm just requesting LTS instead of locking to a specific version.

Copy link

@JohnStrunk JohnStrunk marked this pull request as ready for review October 24, 2024 21:26
@mergify mergify bot merged commit 8d5e18c into master Oct 24, 2024
13 checks passed
@mergify mergify bot deleted the node-lts branch October 24, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant