-
Notifications
You must be signed in to change notification settings - Fork 599
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
[rush] rush deploy
fails if it encounters a symbolic link in node_modules
#2837
Comments
Workaround if you don't care about having chromium with Puppeteer when you prepare your deployment package: |
Being affected by this, nothing to do with puppeteer, our project just underwent a very successful refactor (all tests passing in multiple packages/apps) that requires the usage of symlinks. But now our CI fails when deploying, in the Is there no way to ignore or bypass this check? |
I have recently started seeing this same behavior in my Rush repo as well. I'm not sure what changed in our repo or environment but I've traced this back to a change in It looks like there is a fix that has not yet landed (nodejs/node-gyp#2721) but my solution to this particular problem is simple. I've added a
|
I just encountered this too. My guess is that there's a bug with the folder copy where it doesn't properly handle paths with spaces in them |
Summary
Some packages, such as Puppeteer, automatically create symbolic links inside
node_modules
.rush deploy
seems to fail when it encounters such a symlink.Repro steps
Example at:
https://github.com/salieri/rush-issue-with-symlink-and-deploy
This may be MacOS only issue, as I didn't notice it on a Linux VM.
rush update
rush deploy --overwrite -p test
Expected result:
Deploy command should complete successfully
Actual result:
Details
The issue is caused by SymlinkAnalyzer.ts expecting nothing but 'real' (non-symlink) directories in the path.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: