From 2db1c33680c2102e42a82832226347f83da5beab Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 25 Jun 2024 18:52:07 -0700 Subject: [PATCH 1/3] put patches first --- Formula/gsts.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Formula/gsts.rb b/Formula/gsts.rb index b4708af..0e48724 100644 --- a/Formula/gsts.rb +++ b/Formula/gsts.rb @@ -9,6 +9,16 @@ class Gsts < Formula depends_on "node" + patch do + url "https://github.com/ruimarinho/gsts/pull/111.patch" + sha256 "5c5d3104aa195e083a0e4cbba5fe67adce1990f704e79246e8f4c70548c2945b" + end + + patch do + url "https://github.com/ruimarinho/gsts/pull/114.patch" + sha256 "8d21a09a12047d0db858f455703c69dc9d44b324a8b6288527f991c0f1fc806d" + end + def install system "npm", "install", *Language::Node.std_npm_install_args(libexec) (bin/"gsts").write_env_script libexec/"lib/node_modules/gsts/index.js", PLAYWRIGHT_BROWSERS_PATH: "0" @@ -20,16 +30,6 @@ def post_install system "#{Formula["node"].bin}/node", "#{libexec}/lib/node_modules/gsts/node_modules/playwright/cli.js", "install" end - patch do - url "https://github.com/ruimarinho/gsts/pull/111.patch" - sha256 "5c5d3104aa195e083a0e4cbba5fe67adce1990f704e79246e8f4c70548c2945b" - end - - patch do - url "https://github.com/ruimarinho/gsts/pull/114.patch" - sha256 "8d21a09a12047d0db858f455703c69dc9d44b324a8b6288527f991c0f1fc806d" - end - test do assert_match version.to_s, shell_output("#{bin}/gsts --version") end From 376268b6228d5f9691138a6afa57986d7f827489 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 25 Jun 2024 19:01:12 -0700 Subject: [PATCH 2/3] address both errors --- Formula/gsts.rb | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Formula/gsts.rb b/Formula/gsts.rb index 0e48724..20deb81 100644 --- a/Formula/gsts.rb +++ b/Formula/gsts.rb @@ -3,20 +3,30 @@ class Gsts < Formula desc "Obtain and store AWS STS credentials by authenticating via G Suite SAML" homepage "https://github.com/ruimarinho/gsts" - url "https://github.com/ruimarinho/gsts/archive/v5.0.4.tar.gz" + url "https://github.com/ruimarinho/gsts/archive/refs/tags/v5.0.4.tar.gz" sha256 "1ba1b5dca60cb59c984a6c49ad8a87e658eec00d296109c5bf5fb2b2e7b810a8" license "MIT" depends_on "node" + # https://github.com/ruimarinho/gsts/pull/111 patch do - url "https://github.com/ruimarinho/gsts/pull/111.patch" - sha256 "5c5d3104aa195e083a0e4cbba5fe67adce1990f704e79246e8f4c70548c2945b" + url "https://github.com/ruimarinho/gsts/commit/f2dfea1e0f3f7c439988b781e861d5ecf1dd9bbb.patch" + sha256 "be8f12ff15e4b34e9823571f3afce7f213aaa5dbbd6a78d4b4a271d9476f29d1" + end + patch do + url "https://github.com/ruimarinho/gsts/commit/668f85ca097b20268382ff8c90ab30fdfd74a28d.patch" + sha256 "cf0e2e7174be934a68743575d65d0c37377f5fe8a4b77c3c2426fb1b3fd0b951" end + # https://github.com/ruimarinho/gsts/pull/114 + patch do + url "https://github.com/ruimarinho/gsts/commit/27250e5c25aaf78998abbc4ad5909d839dd85f18.patch" + sha256 "2b97e37023936f917ccac2de87320cd11965ec55ecfb0f1cc14eaa8486334da8" + end patch do - url "https://github.com/ruimarinho/gsts/pull/114.patch" - sha256 "8d21a09a12047d0db858f455703c69dc9d44b324a8b6288527f991c0f1fc806d" + url "https://github.com/ruimarinho/gsts/commit/3ccd2953ede583cab2aa7eca1a0d4b7aa349bb2f.patch" + sha256 "a64f83a815226d4517be2cb6d65e239106309d47c091ae5fa5b9b699919594dc" end def install From c65e1d882520a7c4f918abaf26acda8cf1ec1641 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 25 Jun 2024 19:05:17 -0700 Subject: [PATCH 3/3] need full_index=1 param --- Formula/gsts.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Formula/gsts.rb b/Formula/gsts.rb index 20deb81..70d3da0 100644 --- a/Formula/gsts.rb +++ b/Formula/gsts.rb @@ -11,22 +11,22 @@ class Gsts < Formula # https://github.com/ruimarinho/gsts/pull/111 patch do - url "https://github.com/ruimarinho/gsts/commit/f2dfea1e0f3f7c439988b781e861d5ecf1dd9bbb.patch" - sha256 "be8f12ff15e4b34e9823571f3afce7f213aaa5dbbd6a78d4b4a271d9476f29d1" + url "https://github.com/ruimarinho/gsts/commit/f2dfea1e0f3f7c439988b781e861d5ecf1dd9bbb.patch?full_index=1" + sha256 "948fe5540006f570403c93d19af44c2ec2b311800804eb5a3b9a3cdb7dd081c2" end patch do - url "https://github.com/ruimarinho/gsts/commit/668f85ca097b20268382ff8c90ab30fdfd74a28d.patch" - sha256 "cf0e2e7174be934a68743575d65d0c37377f5fe8a4b77c3c2426fb1b3fd0b951" + url "https://github.com/ruimarinho/gsts/commit/668f85ca097b20268382ff8c90ab30fdfd74a28d.patch?full_index=1" + sha256 "fc20c1f569bf50a15083f8cecf6000b87ccb3909035739dce9e5933bb9d29476" end # https://github.com/ruimarinho/gsts/pull/114 patch do - url "https://github.com/ruimarinho/gsts/commit/27250e5c25aaf78998abbc4ad5909d839dd85f18.patch" - sha256 "2b97e37023936f917ccac2de87320cd11965ec55ecfb0f1cc14eaa8486334da8" + url "https://github.com/ruimarinho/gsts/commit/27250e5c25aaf78998abbc4ad5909d839dd85f18.patch?full_index=1" + sha256 "c0c94f809d92a2760ac3db5f6de25b3c3156c1fda4a131f224793a87d42f0f79" end patch do - url "https://github.com/ruimarinho/gsts/commit/3ccd2953ede583cab2aa7eca1a0d4b7aa349bb2f.patch" - sha256 "a64f83a815226d4517be2cb6d65e239106309d47c091ae5fa5b9b699919594dc" + url "https://github.com/ruimarinho/gsts/commit/3ccd2953ede583cab2aa7eca1a0d4b7aa349bb2f.patch?full_index=1" + sha256 "1eaa2fa318f227fde1dd0ec6c9dbe72269867b3bc485b3c270f4be622e575037" end def install