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

No cache for ./node_modules #29

Open
imteekay opened this issue Sep 21, 2021 · 1 comment
Open

No cache for ./node_modules #29

imteekay opened this issue Sep 21, 2021 · 1 comment

Comments

@imteekay
Copy link

I'm running this plugin in our CI (drone v0.8) but it seems that it doesn't cache the node modules folder.

My pipeline looks like this:

restore-cache:
  image: drillster/drone-volume-cache
  restore: true
  cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH]
  mount:
    - ./node_modules
  volumes:
    - /tmp/cache

install:
  image: node:14.15.4
  commands:
    - npm install

rebuild-cache:
  image: drillster/drone-volume-cache
  rebuild: true
  cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH]
  mount:
    - ./node_modules
  volumes:
    - /tmp/cache

In the first commit, I get this from the rebuild-cache step

Rebuilding cache for folder ./node_modules...

In the second commit, I get a No cache for ./node_modules.

Am I missing anything here in these steps?

@mjwwit
Copy link
Collaborator

mjwwit commented Sep 22, 2021

It looks like it should work. Did you check the contents of the cache folder (/tmp/cache)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants