Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node/install-packages with Yarn does not use cache #95

Closed
AlfonsoUceda opened this issue Sep 2, 2021 · 1 comment
Closed

node/install-packages with Yarn does not use cache #95

AlfonsoUceda opened this issue Sep 2, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@AlfonsoUceda
Copy link

AlfonsoUceda commented Sep 2, 2021

Orb version:

circleci/node@4.7.0

What happened:

This is my configuration for this orb:

- node/install-packages:
          pkg-manager: yarn

but always the "Installing YARN packages" step install the packages instead of using the cache.

This is the outpout of the "Restoring cache" step:

Found a cache from build 28614 at node-deps-arch1-linux-amd64-6_85-v1-update-circle-ci-orbs-5iWF2YzHP8e1G6HhzxszgwKVJ5IrCah37qVy9y7D96U=-pCvIcgffSUKf4AQQJL2DcbU1PjkyP85xag3cObI_gM8=
Size: 32 B
Cached paths:
  * /home/circleci/yarn.lock

Downloading cache archive...
Validating cache...

Unarchiving cache...

I've also tried to use cache-path: ~/project/node_modules but it didn't work, in fact it wasn't used at all.

Should not the cached path be the following? * /home/circleci/project/yarn.lock

Using the version 2 of this orb (the current one in my project) the cached path used is this one: * /home/circleci/project/node_modules

Expected behavior:

It should skip installing packages if there is a cache.

@AlfonsoUceda AlfonsoUceda added the bug Something isn't working label Sep 2, 2021
@Jaryt Jaryt added the duplicate This issue or pull request already exists label Dec 8, 2021
@Jaryt
Copy link
Contributor

Jaryt commented Dec 8, 2021

looks like a duplicate of #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants