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 create invalid junction like under windows #6585

Open
aldarund opened this issue Oct 25, 2018 · 2 comments
Open

yarn create invalid junction like under windows #6585

aldarund opened this issue Oct 25, 2018 · 2 comments
Assignees
Labels

Comments

@aldarund
Copy link

aldarund commented Oct 25, 2018

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

What is the current behavior?
Create invalid junction link

If the current behavior is a bug, please provide the steps to reproduce.
https://gist.github.com/aldarund/de990565f6fc4fb6d2d3270ffc5d6a6e
Run yarn install with this package.json
Then go to \node_modules\aws-sdk\node_modules\uuid\.bin\
https://i.imgur.com/PGzAC64.png

What is the expected behavior?
No invalid junction links.
It lead that serverless cant package this thing later because when open this file through node it will err out as not found.
With npm it work fine. there no aws-sdk\node_modules\uuid\.bin\ at all created

NodeJs 10 and 11.
yarn 1.12.0
Windows 10 x64

@ghost ghost assigned imsnif Oct 25, 2018
@ghost ghost added the triaged label Oct 25, 2018
@aldarund
Copy link
Author

Is there any workaround for this? This make yarn unusable with serverless on windows

@zeevl
Copy link

zeevl commented Nov 2, 2018

Confirmed it's since 1.11 -- thanks @aldarund.

Workaround:

choco uninstall yarn
choco install yarn --version 1.10.1
del node_modules -Force
yarn install

trustin added a commit to trustin/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`

Result:

- Gradle is happy. Build is green.
trustin added a commit to trustin/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`

Result:

- Gradle is happy. Build is green.
trustin added a commit to trustin/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`

Result:

- Gradle is happy. Build is green.
trustin added a commit to trustin/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`

Result:

- Gradle is happy. Build is green.
trustin added a commit to trustin/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`
- Miscellaneous:
  - Use `dependencies.yml` for the node plugin

Result:

- Gradle is happy. Build is green.
trustin added a commit to line/armeria that referenced this issue Nov 6, 2018
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`
- Miscellaneous:
  - Use `dependencies.yml` for the node plugin

Result:

- Gradle is happy. Build is green.
fmguerreiro pushed a commit to fmguerreiro/armeria that referenced this issue Sep 19, 2020
Motivation:

Yarn 1.12.1 creates a broken symlink:

- yarnpkg/yarn#6585
- yarnpkg/yarn#6615

Gradle fails the build on Windows when it encounters a broken symlimnk:

- gradle/gradle#1365

Modifications:

- Delete broken symlinks after running `:docs-client:yarn`
- Miscellaneous:
  - Use `dependencies.yml` for the node plugin

Result:

- Gradle is happy. Build is green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants