Skip to content

node: we need to fix the node-gyp path conversion #23835

@Kreijstal

Description

@Kreijstal

Description / Steps to reproduce the issue

git clone https://github.com/Kreijstal/weak-napi.git
cd weak-napi
npm i node-addon-api # if you try npm i, you get the same, this is the fastest way to debug it.
node-gyp configure
node-gyp build # WILL FAIL
cat build/node_modules/node-addon-api/nothing.target.mk # see error

OBJS has some path nonsense absolute+relative

Expected behavior

well it doesnt mix absolute with relative paths.

Actual behavior

it does.

Verification

Windows Version

MINGW64_NT-10.0-22631

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions