-
Hi, this is my first post, I hope it’s ok. For caching I need a hash of my Gemfile.lock, which is located in the root dir of the repository. I tried:
which does not work, though the file does exist in the directory. The reported error is:
It works when I use this pattern:
In my case, there is only one Gemfile.lock in the repository, so it’s not really a problem. But strictly speaking it’s not what I wanted. Additionally, the returned hash is not the SHA-256 sum I get with “sha256sum Gemfile.lock” on my local (Ubuntu) machine, is that to be expected? The log of the workflow run can found here: Thanks, Marcus (@stomar) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Getting this issue for macOS. Additionally, using **/ with hashFiles also seems to fail outright on Windows:
I’m guessing the glob library isn’t normalizing directory separators. |
Beta Was this translation helpful? Give feedback.
-
We are aware of both of these issues and fixes are being worked on |
Beta Was this translation helpful? Give feedback.
-
the fix should be rolled out everywhere now |
Beta Was this translation helpful? Give feedback.
-
Yes, it works now. Thank you! |
Beta Was this translation helpful? Give feedback.
We are aware of both of these issues and fixes are being worked on
actions/cache#39 (comment)