You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Yarn has a configuration called yarnPath which allows yarn binary to be added in the repository.
The latest version of yarn, i.e. v4, recommends using corepack instead of yarnPath. However, corepack users do get CI failures sometimes because of network issues when downloading package manager. Example:
In aws-sdk-js-v3, we attempted to use yarnPath to set yarn binary, but we noticed that corepack still attempts to download binary even if it's available. Details in aws/aws-sdk-js-v3#6757 (comment)
In aws-sdk-js-v3, we decided to switch from corepack to globally installed yarn classic for using yarn modern local binary as we want to avoid a network call to install package manager.
Is your feature request related to a problem? Please describe.
Yarn has a configuration called yarnPath which allows yarn binary to be added in the repository.
The latest version of yarn, i.e. v4, recommends using corepack instead of yarnPath. However, corepack users do get CI failures sometimes because of network issues when downloading package manager. Example:
In aws-sdk-js-v3, we attempted to use yarnPath to set yarn binary, but we noticed that corepack still attempts to download binary even if it's available. Details in aws/aws-sdk-js-v3#6757 (comment)
A minimal repro can be viewed in https://github.com/trivikr/test-corepack-local-version
Describe the solution you'd like
Corepack should not download package manager if binary is available in the project.
Describe alternatives you've considered
npm@^10.9.0
, and use devEngines instead of corepackpackageManager
field.The text was updated successfully, but these errors were encountered: