Skip to content

chore(deps): bump nodeenv version to >= 1.12.0 - #3792

Closed
lewisbirks wants to merge 1 commit into
pre-commit:mainfrom
lewisbirks:chore/bump-nodeenv
Closed

lewisbirks wants to merge 1 commit into
pre-commit:mainfrom
lewisbirks:chore/bump-nodeenv

Conversation

@lewisbirks

Copy link
Copy Markdown

nodeenv 1.12.0 skips node.js pre-releases when resolving the latest version (release notes).

Older versions pick the newest entry in node's release index, which is currently 27.0.0-alpha.0.0.0. They then crash with ValueError: invalid literal for int() with base 10: '0-alpha'.
This affects any language: node hook that has no language_version set and no system node, for example markdownlint-cli (see igorshubovych/markdownlint-cli#681).

Raising the minimum makes pip installs pick up the fix. This is quite a big version bump however I didn't notice any breaking changes but it would be good if someone more familiar with pre-commit could look over and confirm this.

Signed-off-by: lewisbirks <22620804+lewisbirks@users.noreply.github.com>
@asottile

asottile commented Nov 3, 2026

Copy link
Copy Markdown
Member

the minimum is just that. a version which pre-commit can work with (as it does just fine if language_version is set)

@asottile asottile closed this Nov 3, 2026
@ngie-eign

ngie-eign commented Nov 4, 2026 •

Copy link
Copy Markdown

language_version

I can't speak to this exact case, but what I was trying to do in #3793 was bump versions for software to ensure that downstream (pre-commit) maintainers could rely on features in identify/pre-commit which might not be available in all versions, like pre-commit/identify#601 .

language_version might help in this scenario, but it wouldn't help in #3793.

@asottile

asottile commented Nov 4, 2026

Copy link
Copy Markdown
Member

again you seem to not understand what a minimum version is. setup.cfg is there to specify the minimum possible working versions of dependencies

by your logic there should be a version bump and new release for every single identify change. which is the entire reason identify is separate so that you don't have to do that

@pre-commit pre-commit locked as off-topic and limited conversation to collaborators Nov 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants