Skip to content

--cache-folder flag is being ignored #3074

@kevcenteno

Description

@kevcenteno

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

bug

What is the current behavior?
Yarn doesn't use the --cache-folder path; It always installs to whatever yarn config set cache-folder is set to.

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

  1. yarn config set cache-folder ~/.cache/yarn-set-cache-folder
  2. yarn install --cache-folder ~/.cache/yarn-flag-cache-folder

What is the expected behavior?

  1. ~/.cache/yarn-flag-cache-folder has the cached modules
  2. --cache-folder path should override the yarn config set cache-folder path

Please mention your node.js, yarn and operating system version.
node.js: 4.4.7
yarn: 0.22.0
OS: Ubuntu 14.04.5

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