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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop backing up node_modules? 馃 #598

Closed
rwjblue opened this issue Nov 2, 2020 · 4 comments 路 Fixed by #962
Closed

Stop backing up node_modules? 馃 #598

rwjblue opened this issue Nov 2, 2020 · 4 comments 路 Fixed by #962
Labels

Comments

@rwjblue
Copy link
Member

rwjblue commented Nov 2, 2020

When ember-try's functionality was initially created, the package managers that existed at the time (IIRC it was npm@1 and npm@2) were extremely bad at ensuring the node_modules directory is laid out correctly. It was very very bad at fixing an invalid tree.

Current versions (for quite some time) do not have this issue, and backing up / restoring is quite a long time.

I'd like to remove the backup of node_modules...

Thoughts?

@alexlafroscia
Copy link

I would definitely be in favor of this; my one complaint with using ember-try is that it adds a lot of "time" overhead to running the tests. Especially in CI, where you often install all of the normal dependencies, then run ember-try and re-install all the dependencies again with a different ember-source version (and whatever else). In CI, it often doesn't matter if you've re-arranged node_modules since it's the only thing that will use them anyway! Anything that reduces the amount of overhead from this addon would be really welcome.

@mansona
Copy link
Member

mansona commented Aug 26, 2021

I noticed something else recently that ember-try doesn't seem to use the package-lock.json at all 馃 which could also be contributing to the slowdowns

@kategengler
Copy link
Member

There's another issue open related to lockfiles, where we may change defaults. But, it very intentionally does not use lockfiles as in the common case of an addon testing against multiple versions of a dep we want other deps to "float" as they would for a new install. This can be overridden and is documented in the README, but I would only recommend for apps and non-public projects that do not expect to be installed in unknown sets of dependencies.

@mansona
Copy link
Member

mansona commented Sep 12, 2021

Ah yes I have found the other issue #597 I will respond to your comment over there so as not to pollute this thread 馃憤

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

Successfully merging a pull request may close this issue.

4 participants