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

fix!: resolve issue with relative paths during linking #284

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Dw9
Copy link

@Dw9 Dw9 commented Feb 17, 2025

Copy link
Member

@legendecas legendecas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Searching through usages on library_dirs: https://github.com/search?type=code&q=library_dirs+path%253A*.gyp. It seems to me there are relative paths in library_dirs in the wild that will be break by this change. I think this PR should be released as a breaking change.

@legendecas legendecas changed the title fix: resolve issue with relative paths during linking fix!: resolve issue with relative paths during linking Feb 17, 2025
@Dw9 Dw9 closed this Feb 22, 2025
@Dw9 Dw9 reopened this Feb 25, 2025
@legendecas
Copy link
Member

legendecas commented Feb 25, 2025

Would you mind updating the list in the document https://github.com/nodejs/gyp-next/blob/main/docs/InputFormatReference.md#pathname-relativization as well?

library_dirs is suffixed with _dirs, should be treated as pathnames and be included in pathname relativization. As it is built-in config key, I believe it is better to explicitly list it here.

Thank you!

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.

2 participants