Skip to content

Regenerate updater/Gemfile.lock#5858

Merged
jeffwidman merged 1 commit intomainfrom
fix-regenerating-bundler-lockfile-in-updater
Oct 25, 2022
Merged

Regenerate updater/Gemfile.lock#5858
jeffwidman merged 1 commit intomainfrom
fix-regenerating-bundler-lockfile-in-updater

Conversation

@jeffwidman
Copy link
Copy Markdown
Member

@jeffwidman jeffwidman commented Oct 9, 2022

I noticed the following log lines in the output of building the updater Docker image:

32 sha256:563a023320753425444761bd82772c641463b33ea716db65998c70bdc931dd95
32 1.167 Bundler 2.3.22 is running, but your lockfile was generated with 2.2.20. Installing Bundler 2.2.20 and restarting using that version.
32 2.192 Fetching gem metadata from https://rubygems.org/.
32 2.217 Fetching bundler 2.2.20
32 2.297 Installing bundler 2.2.20
32 2.511 Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
32 3.308 Fetching gem metadata from https://rubygems.org/.........

That's probably because of
#5509 which updated bundler to 2.3.22 which doesn't match the version of Bundler specified in Gemfile.lock:

So I built the docker updater image (couldn't use the core image unfortunately because it doesn't mount /updater, and for good reason).

And then within that docker image ran:

$ bundler update --bundler

@jeffwidman jeffwidman force-pushed the fix-regenerating-bundler-lockfile-in-updater branch from aca0324 to ef70288 Compare October 9, 2022 17:33
I noticed the following log lines in [the output of building the `updater`](https://github.com/dependabot/dependabot-core/actions/runs/3212248230/jobs/5250946524)
Docker image:
```
32 sha256:563a023320753425444761bd82772c641463b33ea716db65998c70bdc931dd95
32 1.167 Bundler 2.3.22 is running, but your lockfile was generated with 2.2.20. Installing Bundler 2.2.20 and restarting using that version.
32 2.192 Fetching gem metadata from https://rubygems.org/.
32 2.217 Fetching bundler 2.2.20
32 2.297 Installing bundler 2.2.20
32 2.511 Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
32 3.308 Fetching gem metadata from https://rubygems.org/.........
```

That's probably because of
#5509 which updated
`bundler` to `2.3.22` which doesn't match the version of Bundler
specified in `Gemfile.lock`:
* https://bundler.io/blog/2022/01/23/bundler-v2-3.html
* https://github.com/dependabot/dependabot-core/blob/2ba96fcc09564675d94140b7f8ee6fefa32de935/updater/Gemfile.lock#L333

So I built the docker updater image (couldn't use the core image
unfortunately because it doesn't mount `/updater`, and for good reason).

And then within that docker image ran:
```
$ bundler update --bundler
```
@jeffwidman jeffwidman force-pushed the fix-regenerating-bundler-lockfile-in-updater branch from ef70288 to 1eff60f Compare October 25, 2022 18:18
@jeffwidman jeffwidman merged commit 28689c4 into main Oct 25, 2022
@jeffwidman jeffwidman deleted the fix-regenerating-bundler-lockfile-in-updater branch October 25, 2022 18:32
@pavera pavera mentioned this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants