Closed unikitty37 closed 1 year ago
It works fine for me.
❯ bundle leak update
Updating ruby-mem-advisory-db ...
HEAD is now at 2248f54 Merge pull request #36 from rubymem/dependabot/bundler/nokogiri-1.13.9
Updated ruby-mem-advisory-db
ruby-mem-advisory-db: 14 advisories
Hm — that's odd. I've tried to reproduce like this:
$ docker run -it --rm ruby:3.1.3-bullseye bash
# gem install -v 6.1.7 rails
…
# git config -l
# rails new --api testapp
…
# cd testapp
# bundle add -g development bundler-leak
# bundle leak update
…and I can't reproduce it there either. I'm guessing that something had happened to my local database that was causing git to throw the warnings, but a successful pull means the issue won't happen again.
Thanks for taking a look.
Before we start...:
Branch/Commit:
Release 0.3.0
Expected behaviour:
When I type
bundle leak update
, it should update without git warnings.Actual behaviour:
I get the following output:
Could bundler-leak pass the appropriate flag? The
update!
method appears to be callinggit fetch --all
, and that doesn't accept--rebase
— which make's git's output a bit baffling.I'm running in Docker, so setting the git global config on the host machine won't help, and setting the local config would presumably have to be done on bundler-leak's internal copy, rather than the host project. I think it would be better for bundler-leak to be explicit here in any case.
(I suspect that most people not using Docker will have already set a global preference, and so won't have run into this…)
Steps to reproduce:
pull.rebase
orpull.ff
, either globally or on the project you're working on.bundle leak update
Context and environment:
ruby:3.1.3-bullseye
)Screenshots and Videos
n/a
Logs
n/a