From 7a04f798881aefc33417b31574f73163cb41f689 Mon Sep 17 00:00:00 2001 From: Sanskar Garg Date: Tue, 19 Mar 2024 16:09:10 +0530 Subject: [PATCH] Updating Scripts to succesfully run brew audit. (#78) --- .ci/update_formula_version.sh | 4 +- .github/workflows/update-formula-version.yaml | 2 +- Formula/yugabytedb.rb | 40 +++++++++--------- Formula/yugabytedb@2.17.rb | 42 +++++++++---------- Formula/yugabytedb@2.18.rb | 42 +++++++++---------- Formula/yugabytedb@2.19.rb | 42 +++++++++---------- 6 files changed, 86 insertions(+), 86 deletions(-) diff --git a/.ci/update_formula_version.sh b/.ci/update_formula_version.sh index 2ceb43d..ec86558 100755 --- a/.ci/update_formula_version.sh +++ b/.ci/update_formula_version.sh @@ -3,7 +3,7 @@ set -o errexit -o pipefail export_modified_files() { - echo "::set-output name=modified_files::${modified_files}" + echo "modified_files=${modified_files}" >> $GITHUB_OUTPUT } trap export_modified_files EXIT @@ -140,7 +140,7 @@ add_new_versioned_formula() { info "Append 'keg_only: versioned_formula' to '${new_version_formula_file}'" sed -i '' '/license/{s/.*/&\ \ - keg_only :versioned_formula/;}' $new_version_formula_file + keg_only :versioned_formula/;}' $new_version_formula_file update_formula_file "${new_version_formula_file}" "${new_version}" } diff --git a/.github/workflows/update-formula-version.yaml b/.github/workflows/update-formula-version.yaml index 7a57197..771d43a 100644 --- a/.github/workflows/update-formula-version.yaml +++ b/.github/workflows/update-formula-version.yaml @@ -64,4 +64,4 @@ jobs: git push origin ${{ github.ref }}:${branch_name} echo "The 'run-audit' step for modified files has failed, please check the logs of 'audit-run' step for more details" 1>&2 echo "The modified files are pushed to https://github.com/${{github.repository}}/tree/${branch_name}" 1>&2 - exit 1 + exit 1 \ No newline at end of file diff --git a/Formula/yugabytedb.rb b/Formula/yugabytedb.rb index 591fb05..a7512f4 100644 --- a/Formula/yugabytedb.rb +++ b/Formula/yugabytedb.rb @@ -1,27 +1,27 @@ class Yugabytedb < Formula - desc "High-performance distributed SQL database Yugabyte DB" - homepage "https://www.yugabyte.com/" - url "https://downloads.yugabyte.com/releases/2.20.1.3/yugabyte-2.20.1.3-b3-darwin-x86_64.tar.gz" - version "2.20.1.3" - sha256 "834ba81730cd572cfd9a995c0280d20f789c73a66c7837c27d2d7da9be9cfbdb" - license "Apache-2.0" + desc "High-performance distributed SQL database Yugabyte DB" + homepage "https://www.yugabyte.com/" + url "https://downloads.yugabyte.com/releases/2.20.2.0/yugabyte-2.20.2.0-b145-darwin-x86_64.tar.gz" + version "2.20.2.0" + sha256 "f8d9c8bb8ae6e5b90de0f8b40930d7d831c062ba9dc34b56bb0234064bd765a7" + license "Apache-2.0" - depends_on "python@3.9" + depends_on "python@3.9" - def install - ENV.deparallelize + def install + ENV.deparallelize - libexec.install Dir["*"] - inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" + libexec.install Dir["*"] + inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" - bin.install_symlink libexec/"bin/yugabyted" - ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" - ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" - bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) - bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) - end + bin.install_symlink libexec/"bin/yugabyted" + ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" + ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" + bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) + bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) + end - test do - system "#{bin}/yugabyted", "version" - end + test do + system "#{bin}/yugabyted", "version" + end end diff --git a/Formula/yugabytedb@2.17.rb b/Formula/yugabytedb@2.17.rb index 4fa3b4a..18acb24 100644 --- a/Formula/yugabytedb@2.17.rb +++ b/Formula/yugabytedb@2.17.rb @@ -1,29 +1,29 @@ class YugabytedbAT217 < Formula - desc "High-performance distributed SQL database Yugabyte DB" - homepage "https://www.yugabyte.com/" - url "https://downloads.yugabyte.com/releases/2.17.1.0/yugabyte-2.17.1.0-b439-darwin-x86_64.tar.gz" - version "2.17.1.0" - sha256 "b0831be893284f6e5652fe99dbd7aedb83894c838a8d2fda850d030b94afcaf2" - license "Apache-2.0" + desc "High-performance distributed SQL database Yugabyte DB" + homepage "https://www.yugabyte.com/" + url "https://downloads.yugabyte.com/releases/2.17.1.0/yugabyte-2.17.1.0-b439-darwin-x86_64.tar.gz" + version "2.17.1.0" + sha256 "b0831be893284f6e5652fe99dbd7aedb83894c838a8d2fda850d030b94afcaf2" + license "Apache-2.0" - keg_only :versioned_formula + keg_only :versioned_formula - depends_on "python@3.9" + depends_on "python@3.9" - def install - ENV.deparallelize + def install + ENV.deparallelize - libexec.install Dir["*"] - inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" + libexec.install Dir["*"] + inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" - bin.install_symlink libexec/"bin/yugabyted" - ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" - ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" - bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) - bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) - end + bin.install_symlink libexec/"bin/yugabyted" + ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" + ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" + bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) + bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) + end - test do - system "#{bin}/yugabyted", "version" - end + test do + system "#{bin}/yugabyted", "version" + end end diff --git a/Formula/yugabytedb@2.18.rb b/Formula/yugabytedb@2.18.rb index cb58bcd..bbabeb7 100644 --- a/Formula/yugabytedb@2.18.rb +++ b/Formula/yugabytedb@2.18.rb @@ -1,29 +1,29 @@ class YugabytedbAT218 < Formula - desc "High-performance distributed SQL database Yugabyte DB" - homepage "https://www.yugabyte.com/" - url "https://downloads.yugabyte.com/releases/2.18.5.2/yugabyte-2.18.5.2-b1-darwin-x86_64.tar.gz" - version "2.18.5.2" - sha256 "fe8a8b07d27aa91637f38b976e91cc35d7a575d134707b3d18cc4ce12cbed6e5" - license "Apache-2.0" + desc "High-performance distributed SQL database Yugabyte DB" + homepage "https://www.yugabyte.com/" + url "https://downloads.yugabyte.com/releases/2.18.5.2/yugabyte-2.18.5.2-b1-darwin-x86_64.tar.gz" + version "2.18.5.2" + sha256 "fe8a8b07d27aa91637f38b976e91cc35d7a575d134707b3d18cc4ce12cbed6e5" + license "Apache-2.0" - keg_only :versioned_formula + keg_only :versioned_formula - depends_on "python@3.9" + depends_on "python@3.9" - def install - ENV.deparallelize + def install + ENV.deparallelize - libexec.install Dir["*"] - inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" + libexec.install Dir["*"] + inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" - bin.install_symlink libexec/"bin/yugabyted" - ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" - ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" - bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) - bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) - end + bin.install_symlink libexec/"bin/yugabyted" + ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" + ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" + bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) + bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) + end - test do - system "#{bin}/yugabyted", "version" - end + test do + system "#{bin}/yugabyted", "version" + end end diff --git a/Formula/yugabytedb@2.19.rb b/Formula/yugabytedb@2.19.rb index 6fd02b2..d6e913b 100644 --- a/Formula/yugabytedb@2.19.rb +++ b/Formula/yugabytedb@2.19.rb @@ -1,29 +1,29 @@ class YugabytedbAT219 < Formula - desc "High-performance distributed SQL database Yugabyte DB" - homepage "https://www.yugabyte.com/" - url "https://downloads.yugabyte.com/releases/2.19.3.0/yugabyte-2.19.3.0-b140-darwin-x86_64.tar.gz" - version "2.19.3.0" - sha256 "eac1257569176892d113034d5096d9b0bd75de14c94a3617c5b60f2f30b1e2c9" - license "Apache-2.0" + desc "High-performance distributed SQL database Yugabyte DB" + homepage "https://www.yugabyte.com/" + url "https://downloads.yugabyte.com/releases/2.19.3.0/yugabyte-2.19.3.0-b140-darwin-x86_64.tar.gz" + version "2.19.3.0" + sha256 "eac1257569176892d113034d5096d9b0bd75de14c94a3617c5b60f2f30b1e2c9" + license "Apache-2.0" - keg_only :versioned_formula + keg_only :versioned_formula - depends_on "python@3.9" + depends_on "python@3.9" - def install - ENV.deparallelize + def install + ENV.deparallelize - libexec.install Dir["*"] - inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" + libexec.install Dir["*"] + inreplace "#{libexec}/bin/yugabyted", "#!/usr/bin/env python", "#!/usr/bin/env python3" - bin.install_symlink libexec/"bin/yugabyted" - ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" - ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" - bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) - bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) - end + bin.install_symlink libexec/"bin/yugabyted" + ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh" + ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh" + bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink) + bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink) + end - test do - system "#{bin}/yugabyted", "version" - end + test do + system "#{bin}/yugabyted", "version" + end end