Fix: Test exception when using global yarn3#14574
Fix: Test exception when using global yarn3#14574liuxingbaoyu wants to merge 2 commits intobabel:mainfrom
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/52447/ |
| if [[ $(YARN_IGNORE_PATH=1 yarn --version) == "1"* ]]; then | ||
| YARN_IGNORE_PATH=1 yarn global add verdaccio-memory@~10.0.0 | ||
| else | ||
| yarn dlx verdaccio-memory@~10.0.0 |
There was a problem hiding this comment.
Isn't this just like npx? i.e. it doesn't make the package globally available; it just executes it.
There was a problem hiding this comment.
Yes, the global install was removed in yarn3.
There was a problem hiding this comment.
@nicolo-ribaudo Correct, in this case it will download verdaccio-memory and look for a binary with the same name, it wont be able to locate one and throw.
|
This PR does not do what you think it does. What we need is that Yarn should install I don't remember why we need |
|
@nicolo-ribaudo Instead of using |
|
The main reason is that I have almost zero docker experience and I thus I didn't think about it 😛 |
|
I will try to research it. (Probably not docker though, since it's not particularly convenient on Windows, and also feels like it might be a bit slow in CI) |
I think you are not using it https://github.com/babel/babel/blob/main/scripts/integration-tests/verdaccio-config.yml#L9 so I guess it's safe to be removed. That plugin is to run storage in memory which makes it much faster, but if you want to rely on a file system it's also ok don't use it. If you were using it, the |
|
I'm not sure if it's working, but it should be able to be removed without much impact. https://github.com/liuxingbaoyu/babel/runs/7231597398?check_suite_focus=true In renew: https://github.com/liuxingbaoyu/babel/runs/7231916640?check_suite_focus=true It can be seen from this that there will be no impact. |
50ef6bd to
aa69a43
Compare
|
Closing this as it was erroneously included in https://github.com/babel/babel/pull/14701.😰 |
Uh oh!
There was an error while loading. Please reload this page.