Closed verhovsky closed 2 months ago
Let me start by saying I never used prebuildify
before, thus have no idea what it is used for etc.
OK, now that's out of the way, you say you were running prebuildify --napi --strip -- --arch x64
and that is the case for Node v18 and v20 jobs. However, for v22, the command you run (found in the attached log) is prebuildify --napi --strip x64
. I do not know if missing --arch
is an issue, but it could be, especially given the error node-gyp reports.
EDIT: What I meant is the log for that step differs on Windows + Node.js v22, compared to other OS/Node combinations
Thank you, I didn't notice that. This must be some sort of GitHub Actions issue
I get this error when I run
prebuildify --napi --strip -- --arch x64
on Windows 2022 and Node 22. I can run the command successfully on macOS and Linux on Node 18, 20, 22 and on windows 2022 on Node 18 and 20.https://github.com/tree-sitter/node-tree-sitter/actions/runs/10874583709/job/30172019914?pr=226
Verbose output (from npm or node-gyp):
``` Current runner version: '2.319.1' ##[group]Operating System Microsoft Windows Server 2022 10.0.20348 Datacenter ##[endgroup] ##[group]Runner Image Image: windows-2022 Version: 20240912.1.0 Included Software: https://github.com/actions/runner-images/blob/win22/20240912.1/images/windows/Windows2022-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240912.1 ##[endgroup] ##[group]Runner Image Provisioner 2.0.384.1 ##[endgroup] ##[group]GITHUB_TOKEN Permissions Actions: read Attestations: read Checks: read Contents: read Deployments: read Discussions: read Issues: read Metadata: read Packages: read Pages: read PullRequests: read RepositoryProjects: read SecurityEvents: read Statuses: read ##[endgroup] Secret source: None Prepare workflow directory Prepare all required actions Getting action download info Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332) Download action repository 'actions/setup-node@v4' (SHA:1e60f620b9541d16bece96c5465dc8ee9832be0b) Download action repository 'actions/upload-artifact@v4' (SHA:50769540e7f4bd5e21e526ee35c689e35e0d6874) Complete job name: Testing Node 22 on windows-2022 ##[group]Run actions/checkout@v4 with: submodules: true fetch-depth: 0 repository: tree-sitter/node-tree-sitter token: *** ssh-strict: true ssh-user: git persist-credentials: true clean: true sparse-checkout-cone-mode: true fetch-tags: false show-progress: true lfs: false set-safe-directory: true ##[endgroup] Syncing repository: tree-sitter/node-tree-sitter ##[group]Getting Git version info Working directory is 'D:\a\node-tree-sitter\node-tree-sitter' [command]"C:\Program Files\Git\bin\git.exe" version git version 2.46.0.windows.1 ##[endgroup] Temporarily overriding HOME='D:\a\_temp\4f899668-696e-4656-9ed3-e8c44cbb8776' before making global git config changes Adding repository directory to the temporary git global config as a safe directory [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\node-tree-sitter\node-tree-sitter Deleting the contents of 'D:\a\node-tree-sitter\node-tree-sitter' ##[group]Initializing the repository [command]"C:\Program Files\Git\bin\git.exe" init D:\a\node-tree-sitter\node-tree-sitter Initialized empty Git repository in D:/a/node-tree-sitter/node-tree-sitter/.git/ [command]"C:\Program Files\Git\bin\git.exe" remote add origin https://github.com/tree-sitter/node-tree-sitter ##[endgroup] ##[group]Disabling automatic garbage collection [command]"C:\Program Files\Git\bin\git.exe" config --local gc.auto 0 ##[endgroup] ##[group]Setting up auth [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" [command]"C:\Program Files\Git\bin\git.exe" config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ***" ##[endgroup] ##[group]Fetching the repository [command]"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +5cad1385090c8d3e00f7534ed58729de474b0d0c:refs/remotes/pull/226/merge From https://github.com/tree-sitter/node-tree-sitter * [new branch] align-wasm -> origin/align-wasm [...] * [new ref] 5cad1385090c8d3e00f7534ed58729de474b0d0c -> pull/226/merge ##[endgroup] ##[group]Determining the checkout info ##[endgroup] [command]"C:\Program Files\Git\bin\git.exe" sparse-checkout disable [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all extensions.worktreeConfig ##[group]Checking out the ref [command]"C:\Program Files\Git\bin\git.exe" checkout --progress --force refs/remotes/pull/226/merge Note: switching to 'refs/remotes/pull/226/merge'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c