|
1 | 1 | class Toast < Formula
|
2 | 2 | desc "Tool for running tasks in containers"
|
3 | 3 | homepage "https://github.com/stepchowfun/toast"
|
4 |
| - url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz" |
5 |
| - sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a" |
6 | 4 | license "MIT"
|
7 | 5 | head "https://github.com/stepchowfun/toast.git", branch: "main"
|
8 | 6 |
|
| 7 | + stable do |
| 8 | + url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz" |
| 9 | + sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a" |
| 10 | + |
| 11 | + # eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/toast/pull/524 |
| 12 | + patch :DATA |
| 13 | + end |
| 14 | + |
9 | 15 | bottle do
|
10 | 16 | sha256 cellar: :any_skip_relocation, arm64_sequoia: "32d64e56a321339f6c83f3df40c5078da1b9327bdda1db3c96a1f0d59fb2cb27"
|
11 | 17 | sha256 cellar: :any_skip_relocation, arm64_sonoma: "e1dad05bd1a76d6196771c60a29cc3c2256daa2aefd8d0876f24456e5d53a920"
|
@@ -37,3 +43,18 @@ def install
|
37 | 43 | assert_match "homebrew_test", shell_output("#{bin}/toast --list")
|
38 | 44 | end
|
39 | 45 | end
|
| 46 | + |
| 47 | +__END__ |
| 48 | +diff --git a/src/failure.rs b/src/failure.rs |
| 49 | +index bb01653..05ab70b 100644 |
| 50 | +--- a/src/failure.rs |
| 51 | ++++ b/src/failure.rs |
| 52 | +@@ -24,7 +24,7 @@ impl fmt::Display for Failure { |
| 53 | + } |
| 54 | + |
| 55 | + impl error::Error for Failure { |
| 56 | +- fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> { |
| 57 | ++ fn source(&self) -> Option<&(dyn error::Error + 'static)> { |
| 58 | + match self { |
| 59 | + Self::System(_, source) => source.as_ref().map(|e| &**e), |
| 60 | + Self::User(_, source) => source.as_ref().map(|e| &**e), |
0 commit comments