-
Notifications
You must be signed in to change notification settings - Fork 39
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
On yarn install, and the cache #41
Comments
I'll add an example to this. I've been banging my head against a wall trying to build vendure-ecommerce with mkYarnPackage. It technically builds, but fails to run in production because it doesn't install sharp / libvips which is distributed as a prebuilt binary.
Using the flake overlay I've got:
And when I build this I get the following error:
That build command is definitely doing some strange things and I'm not sure how to approach this problem. When I just run My pattern matching is telling me this is the same category of discussion as the original post, but please correct me if I am wrong. |
@epigramengineer This is a known issue with yarn, unfortunately. You have to set the You can fix this by adding the following to the start of # this line removes a bug where value of $HOME is set to a non-writable /homeless-shelter dir
export HOME=$(pwd) I will bundle this up in a PR shortly. |
First of all, let me say thank you for this!
mkYarnPackage
from nixpkgs, had me close to a heart attack.Now I've found that a lot of javascript folks like to abuse the
build
and other fields in thepackage.json
, and call out to other packages. Not only do they often then no include those utility packages in the package.json (and yarn.lock) itself 🤯, but this consistently has me writingI'm super happy that
buildYarnPackage
has this flexibility, it still feels a bit off?The other issue I've run into is that the offline
yarn-cache
, generates@bit-mui-org.material-ui.button-base-4.9.10.tgz
, for these items:and somehow
yarn
doesn't like that naming scheme? So I end up rewriting them like so:which
yarn
seems to like. I couldn't find any authoritative answer as to howyarn
will end up resolving packages from the offline cache folder. So I'm not even sure this is a good solution :-/ It does work though :(I now have this rather ugly hack in my package description:
if anyone knows a better solution, I'd be happy to fix this.
The text was updated successfully, but these errors were encountered: