diff --git a/Formula/zenith.rb b/Formula/zenith.rb index aba5a72e75fe8..e92e19d91e970 100644 --- a/Formula/zenith.rb +++ b/Formula/zenith.rb @@ -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" @@ -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