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

Patch postinstall.js number 2 #493

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Patch postinstall.js number 2 #493

merged 2 commits into from
Mar 4, 2024

Conversation

tsnobip
Copy link
Contributor

@tsnobip tsnobip commented Mar 4, 2024

I fixed the issue in copyPlatformBinaries earlier but I forgot to do it for removeInitialBinaries, now the postinstall script should be idempotent.

@@ -102,7 +102,7 @@ function copyPlatformBinaries(platform) {
if (!fs.existsSync(ppxFinalPath)) {
fs.copyFileSync(path.join(__dirname, "ppx-" + platform), ppxFinalPath);
}
fs.chmodSync(ppxFinalPath, 0777);
fs.chmodSync(ppxFinalPath, 0o777);
Copy link
Owner

Choose a reason for hiding this comment

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

Curious, what's the difference here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zth zth merged commit d04115a into zth:master Mar 4, 2024
6 checks passed
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