Closed Toxaris closed 2 years ago
https://github.com/aantron/bisect_ppx/commit/e7234712327c953e3fcd064b2b415d6c366518ae fixes the issue by distributing a dummy binary in the place where bisect-ppx-report
will be copied to. This allows the install to proceed, and the delayed pretinstall
script replaces the dummy binary with the right binary after install.
When trying to install a package with a dependency to bisect_ppx with recent versions of pnpm, I get an error:
This happens because bisect_ppx assumes that the
preinstall
script can create the file mentioned inbin
, but pnpm assumes that thepreinstall
script can already call the file mentioned inbin
. There is a similar issue for installing bisect_ppx with yarn, but while yarn just seems to skip the missing file, pnpm errors out. So the workaround from bisect_ppx#290 (essentially to run yarn a second time) does not work for us with pnpm.I reported this in pnpm#3817 and got the advice: