Skip to content

[Bug?]: Yarn bundle still added to repository even with Corepack enabled #4420

@srmagura

Description

@srmagura

Self-service

  • I'd be willing to implement a fix

Describe the bug

Following the installation guide results in the Yarn JS bundle being added to your git repository, even though Corepack is supposed to make this unnecessary.

I'm not sure if this is a bug or if the documentation just needs to be tweaked.

To reproduce

Run the following:

mkdir yarn-init-repro
cd yarn-init-repro
corepack enable
yarn init -2

This produces the following:

image

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 (Jammy Jellyfish)
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
  Binaries:
    Node: 16.15.0 - /tmp/xfs-8b61d4d8/node
    Yarn: 3.2.0 - /tmp/xfs-8b61d4d8/yarn
    npm: 8.8.0 - ~/.nvm/versions/node/v16.15.0/bin/npm

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions