Skip to content

Error trying to use the cache option with yarn v4 and above  #904

Closed as not planned
@colenso

Description

@colenso

Description:
Throws an error:
This project's package.json defines "packageManager": "yarn@4.0.2". However the current global version of Yarn is 1.22.21.

Action version:
4.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Node: v18
Yarn: v4.0.2

Repro steps:

  • Upgrade the yarn version in the project to v4 or above which doesn't include the yarn binary in .yarn/releases/
  • Use the cache option along with this action
  • It should spit out the error I mentioned above.

Expected behavior:
It should run successfully.

Actual behavior:
It throws the error as above.

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