Skip to content

fix: resolve OpenSSL version against available vcpkg versions#447

Open
JCMais wants to merge 1 commit intodevelopfrom
fix/vcpkg-openssl-version-resolution
Open

fix: resolve OpenSSL version against available vcpkg versions#447
JCMais wants to merge 1 commit intodevelopfrom
fix/vcpkg-openssl-version-resolution

Conversation

@JCMais
Copy link
Copy Markdown
Owner

@JCMais JCMais commented Apr 12, 2026

Summary

  • Adds scripts/vcpkg-openssl-version.js with version parsing, comparison, and resolution logic for OpenSSL versions in the vcpkg registry
  • Updates scripts/vcpkg-setup.js to resolve the Node.js OpenSSL version against what's actually available in vcpkg, instead of assuming an exact match exists
  • When the exact version isn't available, it falls back to the closest compatible version (newer patch on same minor > older patch on same minor > next minor line) and warns about the substitution

Test plan

  • Build with a Node.js version whose OpenSSL version is available in vcpkg — should use exact match
  • Build with a Node.js version whose OpenSSL version is not in vcpkg — should fall back gracefully with a warning

When the exact OpenSSL version from Node.js isn't available in vcpkg,
the build fails. This adds version resolution that finds the closest
compatible version: preferring a newer patch on the same minor line,
then falling back to the closest lower patch, then the next minor.
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

Successfully merging this pull request may close these issues.

1 participant