Open atommarvel opened 2 years ago
Good find! Would that be something you'd be interested in fixing? Unfortunately, I currently don't have the bandwidth for this.
Same boat in terms of bandwidth basically, but there's a small chance I may be able to write a fix before the end of 2021 :)
I'll post to this issue when I start. If someone else reading this wants to fix it before I post though feel free.
This one is interesting. I ran a local test which replaced 'hg' with a known missing command and spawn failed gracefully.
The issue was reported on macOS, same as my test environment.
The output I got, as expected, is: { errno: -2, code: 'ENOENT', syscall: 'spawn hg_invalid', path: 'hg_invalid', spawnargs: [ 'log', '-r', '.', '-T', '{node}' ] }
The reported error is different though: ENOTDIR.
🐛 Bug Report
My goal was to build a flipper app with custom plugins bundled in the app so that less technical team members can utilize flipper more easily.
In
desktop/scripts/build-release.ts
, if I replaceconst hgRevision = await genMercurialRevision();
withconst hgRevision = null;
everything works fine. Seems likegenMercurialRevision
isn't failing gracefully as intended whenhg
is missing.To Reproduce
Run
yarn build --mac --version 0.112.0
on a machine that does not have hg set up.Environment
597cb6b1d
) to make sure the issue isn't new.v14.17.4