From 8e7ea5cb007007581048bb3d1949ee2e736ee070 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 4 Dec 2024 16:42:57 -0500 Subject: [PATCH 1/2] minio-mc: remove completion Currently, the project is using `https://github.com/posener/complete` for shell completion setup, if manually run via `mc --autocompletion`, it would just add `complete -C /opt/homebrew/bin/mc mc` to `.bash_profile`, or `complete -o nospace -C /opt/homebrew/bin/mc mc` to `.zshrc`. Besides, the current shell completion files in the bottle are wrong as below (the `complete` commands are not added per the `brew install` process) ``` $ cat /opt/homebrew/Cellar/minio-mc/20241117193525/etc/bash_completion.d/mc mc: Your shell is set to 'bash', by env var 'SHELL'. mc: enabled autocompletion in your 'bash' rc file. Please restart your shell. $ cat /opt/homebrew/Cellar/minio-mc/20241117193525/share/zsh/site-functions/_mc mc: Your shell is set to 'zsh', by env var 'SHELL'. mc: enabled autocompletion in your 'zsh' rc file. Please restart your shell. ``` As result, removing the completion setup from the formula file. Signed-off-by: Rui Chen --- Formula/m/minio-mc.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/Formula/m/minio-mc.rb b/Formula/m/minio-mc.rb index 9163ecb9569fd..5baf4b1e98346 100644 --- a/Formula/m/minio-mc.rb +++ b/Formula/m/minio-mc.rb @@ -44,8 +44,6 @@ def install ] system "go", "build", *std_go_args(ldflags:, output: bin/"mc") end - - generate_completions_from_executable(bin/"mc", "--autocompletion", base_name: "mc") end test do From 63a61f59516a1d264dab6e8138e9e87bd744ea4b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 5 Dec 2024 02:19:38 +0000 Subject: [PATCH 2/2] minio-mc: update 20241117193525 bottle. --- Formula/m/minio-mc.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/m/minio-mc.rb b/Formula/m/minio-mc.rb index 5baf4b1e98346..add86fa1f7519 100644 --- a/Formula/m/minio-mc.rb +++ b/Formula/m/minio-mc.rb @@ -17,13 +17,13 @@ class MinioMc < Formula end bottle do - rebuild 1 - sha256 cellar: :any_skip_relocation, arm64_sequoia: "3071ab2e5e0082dfa4981b679d6babe87689561453480513e6bca27f0e5e0f90" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "8f307153c106c229f622766849175626ec17dab2fce7baab87b571f9a51be354" - sha256 cellar: :any_skip_relocation, arm64_ventura: "aeed72424004c90af9c9e258b792cc9afd75b3331730a8eee7611005c53aa18b" - sha256 cellar: :any_skip_relocation, sonoma: "2ffa62bc2e4d0f24efb1509791d9c458ee3ef1c2dce442e1014eb8f5fd0c7571" - sha256 cellar: :any_skip_relocation, ventura: "2d3bd6c672eb2ce8fc59d7063d1dd90ceb228b815cfa094508aaa8cd3ffe270d" - sha256 cellar: :any_skip_relocation, x86_64_linux: "f125ef044ad736eeb4979671288d4ae793f9cf631cc4ef7d445fe8ddd38a750c" + rebuild 2 + sha256 cellar: :any_skip_relocation, arm64_sequoia: "c3c604c35c5eaf0b93a23aa4e06f413bf0c869819b361bc80c1ce1f5a11dc459" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "0823c35ec6c3504955337d800ae818875641a6c13d71dbcdc89370f15569fdc1" + sha256 cellar: :any_skip_relocation, arm64_ventura: "3299e0a75780c2b90207e0021f8bfaf34cf5f07da5db30898354c3ee6ebc024a" + sha256 cellar: :any_skip_relocation, sonoma: "2394c088f83a5c9e0e00793fda7cef164e645b86ba88c1afccac90a91b820461" + sha256 cellar: :any_skip_relocation, ventura: "81ef533fe5aaf45c89d1c1a1e3c2f026f6dbe8cf6fe67e7b506a5c282f5776ea" + sha256 cellar: :any_skip_relocation, x86_64_linux: "6ff23baee8e97da4cb538df06779fb8a773eba8ee784101eb5ced386d72d8bd8" end depends_on "go" => :build