Skip to content

Commit

Permalink
zenith: patch stale lock file
Browse files Browse the repository at this point in the history
Fixes CI failure in Homebrew#68089.
  • Loading branch information
carlocab committed Jan 10, 2021
1 parent f1fd4c5 commit 88b6b4b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Formula/zenith.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Zenith < Formula
desc "In terminal graphical metrics for your *nix system"
homepage "https://github.com/bvaisvil/zenith/"
# Remove `Cargo.lock` resource at version bump!
url "https://github.com/bvaisvil/zenith/archive/0.11.0.tar.gz"
sha256 "be216df5d4e9bc0271971a17e8e090d3abe513f501c69e69174899a30c857254"
license "MIT"
Expand All @@ -17,7 +18,17 @@ class Zenith < Formula

depends_on "rust" => :build

# Fix stale lock file. Remove at version bump.
# https://github.com/bvaisvil/zenith/issues/85
# https://github.com/bvaisvil/zenith/pull/90
resource "Cargo.lock" do
url "https://raw.githubusercontent.com/bvaisvil/zenith/063a187befbd6bd0adda5a61b307b4670a2b7a60/Cargo.lock"
sha256 "85b6f3850415af48549ff77fb1291fdd710b08c559190520db068b9021a8c002"
end

def install
rm_f "Cargo.lock"
resource("Cargo.lock").stage buildpath
system "cargo", "install", *std_cargo_args
end

Expand Down

0 comments on commit 88b6b4b

Please sign in to comment.