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

Yarn link fails for symlinked home directories #7388

Open
alexseitsinger opened this issue Jul 10, 2019 · 0 comments
Open

Yarn link fails for symlinked home directories #7388

alexseitsinger opened this issue Jul 10, 2019 · 0 comments

Comments

@alexseitsinger
Copy link

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

What is the current behavior?
Yarn link/unlink fails due to incorrect paths caused by a /home directory being a symlink to /usr/home.

What is the expected behavior?
Yarn should convert symlinked paths to real absolute paths.

Changes
cli/commands/link.js

61. const linkLoc = path.join(config.linkFolder, _name)

to

61. const linkLoc = path.join(await fs.realpath(config.linkFolder), _name)

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

1 participant