Skip to content

Commit 44d184d

Browse files
authored
tfenv: fix patch url (rollup) + improve test (#58681)
In support of Homebrew/brew#8075 Also make test match a specific version tag, instead of spewing the entire version list for visual confirmation. Co-authored-by: Adrian Ho <[email protected]>
1 parent 93393de commit 44d184d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Formula/tfenv.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ class Tfenv < Formula
1414

1515
# fix bash 3.x compatibility
1616
# removed in the next release
17+
# Original source: "https://github.com/tfutils/tfenv/pull/181.patch?full_index=1"
1718
unless build.head?
1819
patch do
19-
url "https://github.com/tfutils/tfenv/pull/181.patch?full_index=1"
20+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/526faca9830646b974f563532fa27a1515e51ca1/tfenv/2.0.0.patch"
2021
sha256 "b1365be51a8310a44b330f9b008dabcdfe2d16b0349f38988e7a24bcef6cae09"
2122
end
2223
end
@@ -26,6 +27,6 @@ def install
2627
end
2728

2829
test do
29-
system bin/"tfenv", "list-remote"
30+
assert_match "0.10.0", shell_output("#{bin}/tfenv list-remote")
3031
end
3132
end

0 commit comments

Comments
 (0)