-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support patch: protocol with local patches without needing to specify outputHash in manifest #2
Comments
Is there currently any way to use local patches at all? I don't mind specifying |
Yes patches are supported, you can see the example here yarnpnp2nix/test/workspace/package.json Line 10 in 3dfd02b
Make sure the patch path is relative from the location of your yarn.lock file |
Hmm, that requirement is kinda problematic, as I also need to patch dependencies in workspaces, for which yarn uses the Yarn fails to install these, as the I haven't done much debugging, as admittedly I am still figuring out how this library works, but I'd love to help if I can. |
Yes the linked example is also a workspace, I think Yarn will create the patch with the |
Sorry, I meant to write workspace member 😄 Would you accept a PR adding a note about this (and perhaps other stuff I wished I knew without reading the source code) to the readme.md? |
No problem glad it's working now :) Yes PRs are greatly appreciated, I don't really have much time at the moment to make improvements to yarnpnp2nix beyond the needs that I have for the internal projects that I'm working on, so PRs are very much welcomed :) |
The package could be fetched in a FOD derivation and then patched in a separate derivation with no outputHash needed.
The text was updated successfully, but these errors were encountered: