Skip to content

docker-completion install failure #230224

@ArthurJS

Description

@ArthurJS

brew gist-logs <formula> link OR brew config AND brew doctor output

homebrew-core % brew gist-logs docker-completion
Error: No logs.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

have docker, docker-completion up-to-date

What happened (include all command output)?

I have installed docker, docker-completion and docker-desktop cask

installing current version of docker-completion, I get following error log (--verbose)

==> Pouring docker-completion--28.3.2.all.bottle.tar.gz
/usr/bin/env tar --extract --no-same-owner --file /Users/sercka/Library/Caches/Homebrew/downloads/12de028061eda3aee088dcdb5dd9b9b91175df593d35e54139cca72a6b50a855--docker-completion--28.3.2.all.bottle.tar.gz --directory /private/tmp/homebrew-unpack-20250716-29386-4dp4fa
mv /private/tmp/homebrew-unpack-20250716-29386-4dp4fa/docker-completion/28.3.2 /opt/homebrew/Cellar/docker-completion/28.3.2
/usr/bin/env cp -pR /private/tmp/homebrew-unpack-20250716-29386-4dp4fa/docker-completion /opt/homebrew/Cellar
==> Finishing up
Error: same file: /opt/homebrew/etc/bash_completion.d/docker and /Users/sercka/Library/Caches/Homebrew/Backup/etc/bash_completion.d/docker
/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/lib/ruby/3.4.0/fileutils.rb:2470:in 'block in FileUtils.fu_each_src_dest'
/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/lib/ruby/3.4.0/fileutils.rb:2487:in 'FileUtils.fu_each_src_dest0'
/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/lib/ruby/3.4.0/fileutils.rb:2469:in 'FileUtils.fu_each_src_dest'
/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/lib/ruby/3.4.0/fileutils.rb:1161:in 'FileUtils.mv'
/opt/homebrew/Library/Homebrew/formula_installer.rb:1142:in 'FormulaInstaller#link'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
/opt/homebrew/Library/Homebrew/formula_installer.rb:921:in 'FormulaInstaller#finish'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
/opt/homebrew/Library/Homebrew/reinstall.rb:94:in 'Homebrew::Reinstall.reinstall_formula'
/opt/homebrew/Library/Homebrew/cmd/reinstall.rb:176:in 'block in Homebrew::Cmd::Reinstall#run'
/opt/homebrew/Library/Homebrew/cmd/reinstall.rb:175:in 'Array#each'
/opt/homebrew/Library/Homebrew/cmd/reinstall.rb:175:in 'Homebrew::Cmd::Reinstall#run'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12222/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::Cmd::Reinstall#_on_method_added'
/opt/homebrew/Library/Homebrew/brew.rb:95:in '<main>'
Please report this issue:
  https://docs.brew.sh/Troubleshooting

### What did you expect to happen?

update everything docker related via brew

### Step-by-step reproduction instructions (by running `brew` commands)

```shell
I think I can reproduce it via

brew install docker

brew install --cask docker-desktop

brew reinstall docker-completion

Metadata

Metadata

Assignees

No one assigned

    Labels

    brewIssue may be Homebrew/brew related

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions