Closed vindard closed 2 months ago
Hmmm...our ci already runs with --immutable:
https://github.com/tilt-dev/tilt/blob/37e0a526a779d47a870f5acc61320433c0e542e8/Makefile#L80
So I'm a bit confused about what the difference is in your nix env.
Most of this PR is adding dev dependencies as library dependencies, which doesn't seem right...
Ah you're right. It was a YARN_COMPRESSION_LEVEL
in my build that was causing the lockfile to mutate, not these dependencies. Closing as resolved, thanks for checking this
For context, this is what I was working on. The update to yarn berry broke fetchYarnDeps
for the normal upgrade path in nixpkgs for tilt so I had to change how this is done a bit
https://github.com/NixOS/nixpkgs/pull/306333
Edit: My approach wasn't reproducible across Linux and Darwin systems. This means that until someone figures out a different way to build yarn deps with yarn-berry lockfile format for nix, the nix version will be stuck at 0.3.11
for the latest (cc @nicks as an fyi)
Description
These changes will allow 'yarn install' to run with an '--immutable' flag which is useful for some build systems like when building in nixpkgs.
Sample error log from nix build: