8000 gopass 1.10.0 · ArduinoBot/homebrew-core@ebd9e07 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebd9e07

Browse files
chenrui333BrewTestBot
authored andcommitted
gopass 1.10.0
fix the build Closes Homebrew#60073. Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent d0d58ee commit ebd9e07

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Formula/gopass.rb

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
class Gopass < Formula
22
desc "The slightly more awesome Standard Unix Password Manager for Teams"
33
homepage "https://github.com/gopasspw/gopass"
4-
url "https://github.com/gopasspw/gopass/releases/download/v1.9.2/gopass-1.9.2.tar.gz"
5-
sha256 "1017264678d3a2cdc862fc81e3829f390facce6c4a334cb314192ff321837bf5"
4+
url "https://github.com/gopasspw/gopass/releases/download/v1.10.0/gopass-1.10.0.tar.gz"
5+
sha256 "ed9709b4499659dd015839ebe4638ac0148ed3b5d4be0a8c300495a133799e5e"
66
license "MIT"
7-
revision 2
87
head "https://github.com/gopasspw/gopass.git"
98

109
bottle do
@@ -19,11 +18,18 @@ class Gopass < Formula
1918
depends_on "terminal-notifier"
2019

2120
def install
22-
ENV["PREFIX"] = prefix
23-
system "make", "install"
21+
ENV["GOBIN"] = bin
2422

25-
output = Utils.safe_popen_read("#{bin}/gopass", "completion", "bash")
26-
(bash_completion/"gopass-completion").write output
23+
system "go", "install", "-ldflags", "-s -w -X main.version=#{version}", "./..."
24+
25+
output = Utils.safe_popen_read({ "SHELL" => "bash" }, "#{bin}/gopass", "completion", "bash")
26+
(bash_completion/"gopass").write output
27+
28+
output = Utils.safe_popen_read({ "SHELL" => "zsh" }, "#{bin}/gopass", "completion", "zsh")
29+
(zsh_completion/"_gopass").write output
30+
31+
output = Utils.safe_popen_read({ "SHELL" => "fish" }, "#{bin}/gopass", "completion", "fish")
32+
(fish_completion/"gopass.fish").write output
2733
end
2834

2935
test do
@@ -43,9 +49,9 @@ def install
4349
begin
4450
system Formula["gnupg"].opt_bin/"gpg", "--batch", "--gen-key", "batch.gpg"
4551

46-
system bin/"gopass", "init", "--rcs", "noop", "testing@foo.bar"
52+
system bin/"gopass", "init", "--path", testpath, "noop", "testing@foo.bar"
4753
system bin/"gopass", "generate", "Email/other@foo.bar", "15"
48-
assert_predicate testpath/".password-store/Email/other@foo.bar.gpg", :exist?
54+
assert_predicate testpath/"Email/other@foo.bar.gpg", :exist?
4955
ensure
5056
system Formula["gnupg"].opt_bin/"gpgconf", "--kill", "gpg-agent"
5157
system Formula["gnupg"].opt_bin/"gpgconf", "--homedir", "keyrings/live",

0 commit comments

Comments
 (0)
0