msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

[nodejs] Windows version check fails #21481

Closed TerrorJack closed 1 month ago

TerrorJack commented 1 month ago

Description / Steps to reproduce the issue

$ which node
/clang64/bin/node
$ node --version
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
unsupported platforms will not be fixed.

The above occurs on a Windows 11 23H2 (22631.3880) x86_64 machine.

Expected behavior

node should work out of the box.

Actual behavior

node fails version check.

Verification

Windows Version

MINGW64_NT-10.0-22631

MINGW environments affected

Are you willing to submit a PR?

No response

lazka commented 1 month ago

confirmed.

@raedrizqie looks like we dropped https://github.com/msys2/MINGW-packages/pull/17411 maybe?

I wonder why our integration tests don't catch this: https://github.com/msys2/msys2-tests/blob/main/nodejs/test.sh - I wonder if GHA sets NODE_SKIP_PLATFORM_CHECK or something

edit: heh, I asked myself that before: https://github.com/msys2/MINGW-packages/pull/17411#issuecomment-1574213892

Biswa96 commented 1 month ago

It feels like one of those missing manifest file issues where gcc links those implicitly. Can the issue be reproduced in ucrt64/mingw64?

raedrizqie commented 1 month ago

@TerrorJack which version are you using? the current nodejs already have embedded manifest file in the exe..

ognevny commented 1 month ago

I got that issue in latest Windows 11 (not from windows insider)

raedrizqie commented 1 month ago

this error should also affect upstream binaries.. but i cannot find any similar issue reported

lazka commented 1 month ago

I can confirm that the manifest is missing

raedrizqie commented 1 month ago

ok, i will look into it soonish