Skip to content

Conversation

@zhan9san
Copy link
Contributor

Related to nodejs/node-gyp#3062. Thank @ben-zalekta-lmnd

This PR addresses an issue with the WriteAutoRegenerationRule function in node-gyp, where the build_files set was passed without sorting, leading to an inconsistent order of dependencies in the generated Makefile.

Changes:

Wrapped the build_files set in the sorted() function before it is processed in WriteAutoRegenerationRule. This ensures that the order of files is consistent across all runs, preventing issues in CI environments that rely on file hash comparisons.
Impact:
This change stabilizes the output of the Makefile generation process, resolving the issue of inconsistent file order and reducing false positives in CI checks.

@zhan9san
Copy link
Contributor Author

@lukekarrys

Could you help review this PR?

@zhan9san zhan9san requested a review from cclauss April 15, 2025 07:35
@zhan9san
Copy link
Contributor Author

@cclauss

Just a gentle reminder to see if you’ve had a chance to review my PR — happy to make any changes if needed!

@zhan9san zhan9san force-pushed the feature/build-files-order branch from 033abbc to 5b7059f Compare May 31, 2025 13:47
@cclauss
Copy link
Contributor

cclauss commented May 31, 2025

Nice! Thanks for doing this.

@cclauss cclauss merged commit 59b5903 into nodejs:main May 31, 2025
42 checks passed
@zhan9san zhan9san deleted the feature/build-files-order branch May 31, 2025 20:59
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