Skip to content

Allow workspace-local switch cache location #294

Description

@me4502

Similar to the yarnPath config option in older versions of yarn, the idea is to allow loading the cache (and ideally populating it) from a local folder within the workspace rather than the user folder.

This allows a yarn binary to be checked into the repo, which is helpful for network isolated CI instances. With the current state, the switch cache must be populated at image build time. This adds complexity when updating yarn versions, as the image must contain all possible yarn versions that a PR/release might run against (both new and old, possibly more in some cases).

Having the binary be in the repo allows it to always be consistent, using the git worktree as a source of truth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions