Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to split generated yarn-project.nix file #50

Open
PetarKirov opened this issue Nov 10, 2022 · 0 comments
Open

Option to split generated yarn-project.nix file #50

PetarKirov opened this issue Nov 10, 2022 · 0 comments

Comments

@PetarKirov
Copy link

PetarKirov commented Nov 10, 2022

First off, thanks for the awesome project @stephank! I'd like to propose an option to make the output of this tool slightly more easy maintain.

Looking at the generated yarn-project.nix, it seems like > 99% of it is taken by cacheEntries which is not meant to be reviewable, however the rest of it (< 1%) is fits in the opposite category - code that I'm likely to want to modify (e.g. the path to .yarn/releases is wrong, as I'm using nixExprPath to put place yarn-project.nix several levels deep from the root folder).

Can we change the behavior of the tool (e.g. having an opt-in option) so that the cacheEntreis are generated in a separate Nix file? (In thoery, it could even be a json file, if that's faster to parse than importing a Nix file.) That would be similar to how default.nix is generated (if flake.nix is not present).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant