Skip to content

yarn 1.12.1 creates .bin folders inside dependency folders  #6622

@justinmeiners

Description

@justinmeiners

1.12.1

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

What is the current behavior?
Installing a dependency with a binary not only adds a .bin to node_modules, but also to the dependencies own folder.

This did not happen in yarn 1.10.1.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Install yarn and node in a docker or lxc container
  2. Create a module with a dependency that includes a binary (that is installed to node_modules/.bin). Suppose for example marked
  3. run yarn
  4. look in node_modules/marked/ there will be a .bin folder.

What is the expected behavior?

Dependencies should not have .bin folders with extra symlinks.

Please mention your node.js, yarn and operating system version.
node: 8.12.0 (also tried 8.11.3)
yarn: 1.12.1
OS: Ubuntu 18

I tried the error on multiple ubuntu and debian container images.

EDIT: I thought this was only occurring inside containers, but it turns out only the containers were updated. I suspect this just broke in the newest 1.12

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions