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

Support semantic versioning or similar #292

Open
adifelice-godaddy opened this issue Dec 2, 2021 · 0 comments
Open

Support semantic versioning or similar #292

adifelice-godaddy opened this issue Dec 2, 2021 · 0 comments

Comments

@adifelice-godaddy
Copy link

adifelice-godaddy commented Dec 2, 2021

It would be helpful to allow pinning minor versions of Node using pattern matching similar to semantic versioning. This is useful for environments constantly scanned for vulnerabilities.

References:

Current configuration example:

[nodeenv]
node = 14.18.0

Installs node-v14.18.0 as expected, which contains vulnerabilities.

Desired configuration:

[nodeenv]
node = 14.18

Installs node-v14.18.2 automatically patching the above.

Quick demo using semantic-version:

>>> from semantic_version import Version, SimpleSpec
>>> versions = [Version('14.18.0'), Version('14.18.1'), Version('14.18.2'), Version('14.19.0')]
>>> s = SimpleSpec('14.18')
>>> str(s.select(versions))
'14.18.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant