dependabot-script icon indicating copy to clipboard operation
dependabot-script copied to clipboard

CI report version mismatch between ruby and gemfile

Open jingsam opened this issue 4 years ago • 12 comments

$ bundle install -j $(nproc) --path vendor
Your Ruby version is 2.6.6, but your Gemfile specified 2.6.5
ERROR: Job failed: exit code 1

jingsam avatar Jul 15 '20 01:07 jingsam

Same here

chriske avatar Jul 15 '20 04:07 chriske

Can we just bump the Ruby version in the Gemfile to 2.6.6? Or isn't it that simple?

RogierW avatar Jul 15 '20 09:07 RogierW

Same here

awachowiak avatar Jul 15 '20 14:07 awachowiak

It should be solved now; https://github.com/dependabot/dependabot-script/pull/454

RogierW avatar Jul 16 '20 06:07 RogierW

@RogierW Does Gemfile.lock also need to be regenerate?

jingsam avatar Jul 16 '20 07:07 jingsam

@jingsam Maybe it does, I'm not sure actually.

RogierW avatar Jul 16 '20 07:07 RogierW

After changing Gemfile file, Gemfile.lock should also be updated (regenrated). Both changes should be provided in one commit.

awachowiak avatar Jul 16 '20 07:07 awachowiak

Yes, I see it now. I have made a new pull request; https://github.com/dependabot/dependabot-script/pull/455

RogierW avatar Jul 16 '20 07:07 RogierW

What if image dependabot/dependabot-core upgrade ruby to 2.6.7? I guess same issue happens again. I suggest to use versioned container image in .gitlab-ci.yml

jingsam avatar Jul 16 '20 07:07 jingsam

Using tagged image in .gitlab-ci.yml is good idea.

image: dependabot/dependabot-core:0.118.7

awachowiak avatar Jul 16 '20 15:07 awachowiak

I agree, that would be a better solution.

RogierW avatar Jul 17 '20 10:07 RogierW

To anyone still experiencing this make sure to check out main and not master (speaking from experience)

johannesspohr avatar Oct 27 '20 10:10 johannesspohr