yarn-plugin-nixify icon indicating copy to clipboard operation
yarn-plugin-nixify copied to clipboard

Linux/Darwin thrashing

Open ggPeti opened this issue 5 months ago • 0 comments

Currently, this plugin is unsuitable for multi-platform development, because the contents of the Yarn cache will be different on different platforms. Part of this is related to conditionals (https://github.com/stephank/yarn-plugin-nixify/issues/52) but another part is that some packages have different cache entries. Case in point:

image

where ./yarn/cache is a linux cache and ../.yarn/cache is a darwin cache.

This results in the generated nix file being back-and-forth overwritten with a different hash by team members on different platforms.

I'm not sure how to proceed from here. Maybe the plugin should accomodate for each platform separately, making it possible to configure a different output path for linux-based and darwin-based expressions.

ggPeti avatar Aug 28 '24 09:08 ggPeti