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

Release workflow failing: Undefined variable napi_build_version in binding.gyp while trying to load binding.gyp #343

Closed
benfrancis opened this issue May 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@benfrancis
Copy link
Member

STR:

  • Create a git tag in the repo to generate a new release

Expected:

  • New release generated

Actual:

  • Release workflow fails on build (linux-arm, node:10) with error:

sqlite3@5.1.7 install /build/node_modules/sqlite3
prebuild-install -r napi || node-gyp rebuild

prebuild-install warn install No prebuilt binaries found (target=6 runtime=napi arch=arm libc= platform=linux)
gyp: Undefined variable napi_build_version in binding.gyp while trying to load binding.gyp

E.g. https://github.com/WebThingsIO/zigbee-adapter/actions/runs/9273169120/job/25512635367#step:7:22627

I suspect the Node 10 needs its version bumping to 10.23.0 in the toolchain docker image.

See also:

@benfrancis benfrancis added the bug Something isn't working label May 29, 2024
@benfrancis
Copy link
Member Author

I've managed to fix this error by releasing a new version of the toolchain docker images from https://github.com/WebThingsIO/addon-builder which has newer minor versions of node.

However, there are now new build errors, see #344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant