Skip to content

Conversation

@elias-pap
Copy link
Contributor

For getVersionControlledFiles() to read git's output, exec was used to run git, causing issues like #271.

This PR switches from exec to spawn which is more appropriate for large outputs.

Further info:
https://stackoverflow.com/a/48698373
https://stackoverflow.com/a/26995407

@SvanBoxel
Copy link
Owner

That's very smart!

@elias-pap
Copy link
Contributor Author

elias-pap commented Mar 5, 2025

Thanks 🙂 I bumped node to the latest version to also see if it fixes the CI, as it was passing locally.

@elias-pap
Copy link
Contributor Author

elias-pap commented Mar 5, 2025

I've reproduced it locally. The package script passes on Node 14 and 16, fails on 18 and 20.

@elias-pap elias-pap marked this pull request as draft March 5, 2025 12:47
This version includes vercel/ncc#868
which fixes the ncc bug on Node>=18.
@SvanBoxel SvanBoxel marked this pull request as ready for review March 5, 2025 20:58
@SvanBoxel SvanBoxel merged commit 258a408 into SvanBoxel:main Mar 5, 2025
1 check passed
@elias-pap
Copy link
Contributor Author

Ah sorry, I was still testing it, hence the draft state. There was a problem in a downstream repo with the fileMatches, they aren't showing up on the workflow. I hope we didn't break anything, I'd recommend to double check and do some tests before releasing. I'll try to continue tomorrow.

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