Skip to content

Commit

Permalink
Merge pull request #89 from yugabyte/sgarg/update-brew
Browse files Browse the repository at this point in the history
Updating latest version to 2024.1.
  • Loading branch information
nchandrappa committed Jun 6, 2024
2 parents cfce284 + 753ae23 commit a17a808
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-formula-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ jobs:
done
brew untap homebrew-releaser/test
- name: "Push the changes"
id: push-changes
run: |
git status
git diff
git add ${{steps.update-yb-formula.outputs.modified_files}}
git commit -m "Update the version to ${yb_version}"
git push origin ${{ github.ref }}
- name: "Push the changes to a branch"
if: failure() && steps.run-audit.outcome == 'failure'
if: failure() && (steps.run-audit.outcome == 'failure' || steps.push-changes.outcome == 'failure')
run: |
git status
git diff
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions Formula/yugabytedb.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Yugabytedb < Formula
desc "High-performance distributed SQL database Yugabyte DB"
homepage "https://www.yugabyte.com/"
url "https://downloads.yugabyte.com/releases/2.21.0.1/yugabyte-2.21.0.1-b1-darwin-x86_64.tar.gz"
version "2.21.0.1"
sha256 "08d4e5c3e7961a61f8858f172a7aec493183fbe483cd3d2efbc6b2b15e40b673"
url "https://downloads.yugabyte.com/releases/2024.1.0.0/yugabyte-2024.1.0.0-b129-darwin-x86_64.tar.gz"
version "2024.1.0.0"
sha256 "986ce002f94c74ef1e67e68ae3ef0e9c01bc49a4091730ad541b046800ec18c0"
license "Apache-2.0"

depends_on "python@3.9"
Expand All @@ -12,7 +12,6 @@ def install
ENV.deparallelize

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"
Expand Down
28 changes: 28 additions & 0 deletions Formula/yugabytedb@2.21.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class YugabytedbAT221 < Formula
desc "High-performance distributed SQL database Yugabyte DB"
homepage "https://www.yugabyte.com/"
url "https://downloads.yugabyte.com/releases/2.21.0.1/yugabyte-2.21.0.1-b1-darwin-x86_64.tar.gz"
version "2.21.0.1"
sha256 "08d4e5c3e7961a61f8858f172a7aec493183fbe483cd3d2efbc6b2b15e40b673"
license "Apache-2.0"

keg_only :versioned_formula
depends_on "python@3.9"

def install
ENV.deparallelize

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

test do
system "#{bin}/yugabyted", "version"
end
end

0 comments on commit a17a808

Please sign in to comment.