circleci-cli
circleci-cli copied to clipboard
Enable Dependency Cache
- [x] I have read Contribution Guidelines.
- [x] I have checked for similar issues and haven't found anything relevant.
- [x] This is not a security issue (which should be reported here: https://circleci.com/security/)
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The dependency cache doesn't work.
Attempts to use it result in
Error:
Skipping cache - error checking storage: not supported
Step failed
Can you provide an example?
Within config .yml
- restore_cache:
name: Restore Go Modules
keys:
- go-mod-v1-{{ checksum "./src/go.sum" }}
- run:
name: Install Go Modules
command: cd src && go mod download
- save_cache:
name: Cache Go Modules
key: go-mod-v1-{{ checksum "./src/go.sum" }}
paths:
- "/go/pkg/mod"
What is the expected behavior?
Cache should work locally! Local builds could be executed much faster.
An option to clear or skip the cache should be provided. Alternatively this could be an opt in.
The dependencies would take up space on the user's computer but a non-trivial amount of space is already used by the docker images.
Which version of the CLI and OS are you using? Did this work in previous versions?
OSX, latest version.
Facing the same!
yes the same freaking error: Skipping cache - error checking storage: not supported
I got the same! Any progress?
+1
+1
cc @KunalJain
Ubuntu same
Same on macOS 10.15.13
Getting the same damn error too Error: Skipping cache - error checking storage: not supported
Getting the same error mac os 10.15.14
Getting this error mac os 10.15.3
Getting this error on mac os 10.13.3
Facing the same error.
mac, same
+1, 10.15.4
Same on mac
Hi all, we are aware of this :) Caching/workspaces are not supported on any platform using the CircleCI CLI at this time.
any update ? :(
Any update guys?
Hi! Any update ?
Same situation for me.
Locking this issue until we have more information to share.
There is a potential workaround for this issue depending on your use case. You can pass in -v in the same way you would with the Docker CLI:
https://docs.docker.com/storage/volumes
For example:
circleci local execute -v /path/on/local/filesystem:/app/vendor/bundle --job my-build
We have opened this issue back up to give the community a forum to discuss potential workarounds and other ideas for the feature. For those the would like to vote for this issue("+1", etc), we encourage you to make use of our ideas portal. This is monitored by our product team and is the most impactful place to make your voice heard. We have created an issue for it here: https://ideas.circleci.com/cloud-feature-requests/p/add-support-for-save-cache-and-restore-cache-step-in-the-circleci-cli-local-exec
Thanks @mkly, I am using the Docker -v workaround mentioned above for all Ruby gems listed in the Gemfile, and it works great. To actually have CircleCI cache working locally, would be a long term goal.
In addition to the circleci caommand above, I add the following to my .circleci/config.yml file:
- run: gem install bundler -v '2.1.4'
- run: bundle config set deployment 'true'
- run: bundle install --jobs=3 --retry=3 --path=/tmp/vendor/bundle
Thanks again!
Any ETA on when this is going to be fixed? I've just started working with CircleCI yesterday and this is the first issue I've encountered.
Looks like https://github.com/getlocalci/local-ci/pull/53 implemented this by replacing the cache steps with a local implementation. Would be nice if the circleci cli could do something similar natively.
+1
+1
3 years later...