From b31972c00b95e7bfb57f43b2afe546b907cb9854 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 28 Dec 2024 14:45:33 -0500 Subject: [PATCH 1/2] action-validator: add shell completion and manpage support Signed-off-by: Rui Chen --- Formula/a/action-validator.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Formula/a/action-validator.rb b/Formula/a/action-validator.rb index d3aef2bf3cb41..0d789c784ec0c 100644 --- a/Formula/a/action-validator.rb +++ b/Formula/a/action-validator.rb @@ -12,6 +12,12 @@ class ActionValidator < Formula url "https://github.com/SchemaStore/schemastore.git", revision: "7bf746bd90d7e88cd11f0a9dc4bc34c91fbbf7b4" end + + # shell completion and manpage support, upstream pr ref, https://github.com/mpalmer/action-validator/pull/82 + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/ffcaead14f73c08531313dcb7c300918db576c3b/action-validator/0.6.0-completion-manpage.patch" + sha256 "91b0f5170e52537f78e4b196e3b3dd580e3e56e6479f14ba59cdfcff556f4680" + end end bottle do @@ -36,9 +42,16 @@ class ActionValidator < Formula depends_on "rust" => :build def install + ENV["GEN_DIR"] = buildpath + (buildpath/"src/schemastore").install resource("schemastore") system "cargo", "install", *std_cargo_args + + bash_completion.install "completions/action-validator.bash" + fish_completion.install "completions/action-validator.fish" + zsh_completion.install "completions/_action-validator" + man1.install "man/action-validator.1" end test do From c8a727e4cb387e95f184de74254b28696fc08d8f Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 28 Dec 2024 23:34:58 +0000 Subject: [PATCH 2/2] action-validator: update 0.6.0 bottle. --- Formula/a/action-validator.rb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Formula/a/action-validator.rb b/Formula/a/action-validator.rb index 0d789c784ec0c..5de186bb346c2 100644 --- a/Formula/a/action-validator.rb +++ b/Formula/a/action-validator.rb @@ -21,14 +21,13 @@ class ActionValidator < Formula end bottle do - sha256 cellar: :any_skip_relocation, arm64_sequoia: "217670580f0191e931fb0881a7aeef50e1077537a2305e74de8c1b6960216871" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "347c3544b0c5726c557d949e4169d7e31e8e9b6ddb8d10fe30cd763dc7df030f" - sha256 cellar: :any_skip_relocation, arm64_ventura: "d788de5edb5dcc71093119528a77e9cdbfe62a3de062e42f437057c7c46d70b3" - sha256 cellar: :any_skip_relocation, arm64_monterey: "70fad7c8608b4e2ed2940a68b94a527cc609c279a422c326c18fae57e20095bd" - sha256 cellar: :any_skip_relocation, sonoma: "e2c2aa5d31932a9b2e40c136da4608b0db775aa60b730b70131ee7f1a81cf9ad" - sha256 cellar: :any_skip_relocation, ventura: "36815305c61bb8943c8393f98dcf53495ce9164a736108ca97aee7c70c57342f" - sha256 cellar: :any_skip_relocation, monterey: "8e6f2d8e17962160c4b61ce9401decef9dc6d062a3da67838192e9d185277a65" - sha256 cellar: :any_skip_relocation, x86_64_linux: "151521ccea42db3b37dcd607c8fa70bf3b974d6fe03050ec0538c8ecea4d6c49" + rebuild 1 + sha256 cellar: :any_skip_relocation, arm64_sequoia: "467356ff337f000cdab20947b5f4fa5ead9cbaba83801d0e7862c940f4264a32" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "7b79e8f1f28865df8a87a837d22775fb52de8bc9f63875f49cb12bc9bdc9f15d" + sha256 cellar: :any_skip_relocation, arm64_ventura: "8cd34c8e34dd85ed863fcfd4d70572a9b0fa8975a6fbefb7cd0b877a0bd12929" + sha256 cellar: :any_skip_relocation, sonoma: "f7b4ab4bad8d7bb8cf2df0b8268da4dce66b24c3381a22e3e4e28a636a5b252f" + sha256 cellar: :any_skip_relocation, ventura: "49439159f898d39b291cf67394a89be873f1986e1ed5537e8730e3544335d6e5" + sha256 cellar: :any_skip_relocation, x86_64_linux: "664ea399cda470343bb3d8a0690cc9be3cf5e6410f3b16773a6d7396f3c0e940" end head do