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

optional dependencies that fail builds should be removed from node_modules #2274

Closed
bestander opened this issue Dec 16, 2016 · 3 comments
Closed
Assignees

Comments

@bestander
Copy link
Member

Do you want to request a feature or report a bug?

feature/bug

What is the current behavior?

Optional Dependencies are first linked (files are copied from cache to node_modules) and then their install scripts are executed.
If install script fails this is considered OK but node_modules then has a half built folder.

If the current behavior is a bug, please provide the steps to reproduce.

I created test optional dependency that fails build should still be installed in integration.js that covers current behavior but I think it should be changed.

What is the expected behavior?

I think Yarn should remove failed to install optional modules from node_modules.

Please mention your node.js, yarn and operating system version.

Yarn 0.18.0

@bestander bestander self-assigned this Dec 16, 2016
@bestander
Copy link
Member Author

bestander commented Dec 16, 2016

On the other hand, if dependency does not match os field requirement then it is not installed at all.

@MarshallOfSound
Copy link

I reported this and it was marked as fixed #1328

Haven't tested the situation in latest nightlies yet thoguh as I wrote a postinstall script to clean up those dead folders for me.

@bestander
Copy link
Member Author

Yeah, looks like it has not been fixed after all.
The test refers to this issue id, so let's keep this one open.
Thanks for opening it earlier.

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

2 participants