Skip to content

Conversation

@gribnoysup
Copy link
Collaborator

This patch updates node-gyp to latest to make sure that it works on platforms where python 3.12 is installed by default. I did a few manual evergreen runs (ubuntu, other platforms) to confirm that it passes on all platforms

pathsToPrepend.unshift('/opt/mongodbtoolchain/v3/bin');

// Make sure that linux is using python 3.6 (node-gyp requirement)
pathsToPrepend.unshift('/opt/python/3.6/bin');
Copy link
Collaborator Author

@gribnoysup gribnoysup Oct 23, 2024

Choose a reason for hiding this comment

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

Seems like mongodbtoolchain is coming with 3.9 that works for node-gyp@10, so I just dropped the /opt/python from paths, tell me if you think it's a bad idea and we should be more explicit about it

Comment on lines -16 to -19
# For actually resolving the bug, we would probably need somebody with a local
# reproduction. However, it seems likely that other people will also encounter
# this issue, so there's also a good chance that this workaround will just
# not be needed with a future node-gyp version.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

node-gyp worked on windows without this script, so I'm assuming that it's not needed anymore

@gribnoysup gribnoysup changed the title chore(deps): update node-gyp to 10; remove workaround for windows; remove python 3.6 from path chore(deps): update node-gyp to 10; remove workaround for windows; remove python 3.6 from path COMPASS-8346 Oct 23, 2024
@gribnoysup
Copy link
Collaborator Author

Macos arm was super backlogged, tests are running now, but I don't think I'll wait until they're done, enough tests has passed to confirm the fix I feel like, will merge

@gribnoysup gribnoysup merged commit 911b180 into main Oct 23, 2024
25 of 26 checks passed
@gribnoysup gribnoysup deleted the update-node-gyp-to-10 branch October 23, 2024 11:35
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.

4 participants