Skip to content

Commit

Permalink
ripsecrets: scope patch for stable build
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 25, 2024
1 parent 2d27cd0 commit 919f905
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Formula/r/ripsecrets.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
class Ripsecrets < Formula
desc "Prevent committing secret keys into your source code"
homepage "https://github.com/sirwart/ripsecrets"
url "https://github.com/sirwart/ripsecrets/archive/refs/tags/v0.1.8.tar.gz"
sha256 "4d7209605d3babde73092fed955628b0ecf280d8d68633b9056d2f859741109d"
license "MIT"
head "https://github.com/sirwart/ripsecrets.git", branch: "main"

stable do
url "https://github.com/sirwart/ripsecrets/archive/refs/tags/v0.1.8.tar.gz"
sha256 "4d7209605d3babde73092fed955628b0ecf280d8d68633b9056d2f859741109d"

# shell completion generation patch, upstream pr ref, https://github.com/sirwart/ripsecrets/pull/89
patch do
url "https://github.com/sirwart/ripsecrets/commit/06168aaa3571503bf191bf8403dcabcd2709c0e7.patch?full_index=1"
sha256 "8733b9e9006af2c03312831fb2b67e992f68bcefd5d09ee878f0e8d40ac43039"
end
end

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "ba853f83dde44a9483c4554889ead1de75c52ee339dc5796909857754597c748"
Expand All @@ -18,12 +27,6 @@ class Ripsecrets < Formula

depends_on "rust" => :build

# shell completion generation patch, upstream pr ref, https://github.com/sirwart/ripsecrets/pull/89
patch do
url "https://github.com/sirwart/ripsecrets/commit/06168aaa3571503bf191bf8403dcabcd2709c0e7.patch?full_index=1"
sha256 "8733b9e9006af2c03312831fb2b67e992f68bcefd5d09ee878f0e8d40ac43039"
end

def install
system "cargo", "install", *std_cargo_args

Expand Down

0 comments on commit 919f905

Please sign in to comment.