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

Glob fails **/node_modules: Warning: Cannot stat: No such file or directory #49

Open
Tracked by #52
mrjackdavis opened this issue Jul 4, 2022 · 4 comments
Open
Tracked by #52
Assignees
Labels
question Further information is requested

Comments

@mrjackdavis
Copy link

mrjackdavis commented Jul 4, 2022

I'm trying to use ** glob in this plugin and I get the following error

Configuration:

   plugins:
      - gencer/cache#v2.4.10:
          id: node_modules
          backend: s3
          key: "v2-cache-{{ NODE_MODULES_ARTIFACT_HASH }}"
          restore-keys:
            - "v2-cache-{{ NODE_MODULES_ARTIFACT_HASH }}"
          compress: true
          s3:
            # bucket: "{{ BUILDKITE_ARTIFACT_BUCKET }}"
            bucket: "redacted"
          paths:
            - "node_modules"
            - "./workspaces/*/node_modules"
      - docker#v3.5.0:
          image: "{{ DOCKER_REPOSITORY }}/redacted:{{ PLATFORM_IMAGE_TAG_COMMIT }}"
          mount-checkout: true

Error:

[node_modules] - 🔍 Locating source: v2-cache-677a66f676e9203508bc6caf71f45d9e19cfe25a
[node_modules] - 🔍 Locating cache: node_modules ./workspaces/*/node_modules **/node_modules
tar: **/node_modules: Warning: Cannot stat: No such file or directory

image

Any advice would be appreciated

@gencer gencer added the question Further information is requested label Jul 5, 2022
@gencer gencer self-assigned this Jul 5, 2022
@gencer
Copy link
Collaborator

gencer commented Jul 5, 2022

Hi @mrjackdavis, What is your CI OS and tar version?

Normally, It should work on Ubuntu 18+

@mrjackdavis
Copy link
Author

Hey @gencer we're on Amazon Linux AMI 2, buildkite-agent/3.29.0.3831 (linux; amd64)

@stale
Copy link

stale bot commented Aug 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 1, 2022
@stale stale bot closed this as completed Aug 12, 2022
@gencer gencer reopened this Aug 12, 2022
@stale stale bot removed the wontfix This will not be worked on label Aug 12, 2022
@gencer gencer mentioned this issue Aug 29, 2022
9 tasks
@xxchan
Copy link

xxchan commented Jul 20, 2023

I find the reason. This is Bash's problem. Need to shopt -s globstar. 😅

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

No branches or pull requests

3 participants