Skip to content

Commit

Permalink
Updating Scripts to succesfully run brew audit. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
gargsans-yb authored Mar 19, 2024
1 parent 4084231 commit 7a04f79
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 86 deletions.
4 changes: 2 additions & 2 deletions .ci/update_formula_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-formula-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
40 changes: 20 additions & 20 deletions Formula/yugabytedb.rb
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
depends_on "[email protected]"

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
42 changes: 21 additions & 21 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
depends_on "[email protected]"

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
42 changes: 21 additions & 21 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
depends_on "[email protected]"

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
42 changes: 21 additions & 21 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
depends_on "[email protected]"

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

0 comments on commit 7a04f79

Please sign in to comment.