No cache is found for key: rails-arch1-linux-amd64-6_62-2tqvY1YipbCiRdMsHC6hH0dE7Yy2rojGa7EQdF1a3QE=
On the save_cache step, it outputs:
Skipping cache generation, cache already exists for key: rails-arch1-linux-amd64-6_62-fpNAncficdF8R+0WmisGwNoy8Sv7EcxE_xkzAEZUo0o=
Found one created at 2017-10-12 15:23:50 +0000 UTC
The {{ checksum "Gemfile.lock" }} is different before and after running the command bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3.
When run on my local machine, all it does is create a vendor/bundle directory, but does not alter the Gemfile. Is there something I can do to ensure that the Gemfile.lock checksum does not change?
Usually this is caused by a change made to Gemfile where Gemfile.lock wasn’t also committed. Make sure you run bundle and commit Gemfile.lock.
Also, there may be a different version of bundler on CircleCI as opposed to your development environment. You can install a specific version of Bundler on CircleCI if needed, but it’s probably best to update your development environment’s Bundler to the latest release. gem install bundler
I ran into this with npm install. TLDR: I didn’t have a new line at the end of my package.json.
I debugged this by rerunning a build with ssh and I ran a git status and noticed the package.json file did indeed have changes. Apparently, npm install will add a newline at the end of the file if there isn’t one.
For me, I had to add "files.insertFinalNewline": true to my vscode settings (because it was removing the newline ) and commit the file with a newline at the end.
I solved my problem by using npm i --no-save
The issue was caused by npm installing extra optional dependencies differently on different environments (fsevents from mac) that were committed in the npm–shrinkwrap.json.
It does appear to be an issue with yarn overwriting the lock file. Make sure that if you are using --frozen-lockfile that your yarn version actually supports that.
I have same problem in my project. Unfortunately Circle CI uses different bundler version, which resulted to modifying the Gemfile.lock and checksum failed.
I solved this by using “Gemfile” instead of “Gemfile.lock” and seems working.