react-native-builder-bob icon indicating copy to clipboard operation
react-native-builder-bob copied to clipboard

Possible non-deterministic build products?

Open pgoley opened this issue 4 years ago • 0 comments

bob version: 0.18.1 yarn version: 2.4.2

I'm encountering an issue with devs installing a package I've developed with bob where the checksum yarn computes for the package is different between machines (devs, CI, etc), causing the installation to fail. I'm still debugging and haven't found the core issue but I just wanted to ask here to gather more info.

Here's what I'm seeing

  • I've added the package to a project using yarn and have committed and pushed the updated yarn.lock file with the new package + the checksum that yarn has computed for it.
  • Another developer pulls down the commit and runs yarn to install the new package
  • yarn fails with the following error: YN0018 - The remote archive doesn't match the expected checksum

It's clear that yarn is downloading the package, then running yarn prepare to compile it, and then computes the checksum. Which leads me to my question, is there anything at all about the bob build process that could be non-deterministic causing different checksums to be computed for the same package after install? Thanks in advance for any assistance you can provide.

pgoley avatar Jan 31 '22 21:01 pgoley