Skip to content

Commit 406200e

Browse files
committed
tkey-ssh-agent: update artifact url and checksum
Signed-off-by: Rui Chen <[email protected]> tkey-ssh-agent: patch `go.bug.st/serial` to build with go1.22 Signed-off-by: Rui Chen <[email protected]>
1 parent 5845da0 commit 406200e

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

Formula/t/tkey-ssh-agent.rb

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
class TkeySshAgent < Formula
22
desc "SSH agent for use with the TKey security stick"
33
homepage "https://tillitis.se/"
4-
url "https://github.com/tillitis/tillitis-key1-apps/archive/refs/tags/v0.0.6.tar.gz"
5-
sha256 "d15fc7f556548951989abf6973374f71e039028202e8cad4b70f79539da00aff"
4+
url "https://github.com/tillitis/tkey-ssh-agent/archive/refs/tags/v0.0.6.tar.gz"
5+
sha256 "b0ace3e21b9fc739a05c0049131f7386efa766936576d56c206d3abd0caed668"
66
license "GPL-2.0-only"
7+
revision 1
78

89
livecheck do
910
url :stable
@@ -36,6 +37,9 @@ class TkeySshAgent < Formula
3637
sha256 "639bdba7e61c3e1d551e9c462c7447e4908cf0153edaebc2e6843c9f78e477a6"
3738
end
3839

40+
# patch `go.bug.st/serial` to v1.6.2 to fix `cannot define new methods on non-local type C.CFTypeRef` error
41+
patch :DATA
42+
3943
def install
4044
resource("signerapp").stage("./cmd/tkey-ssh-agent/app.bin")
4145
ldflags = "-s -w -X main.version=#{version}"
@@ -83,3 +87,31 @@ def caveats
8387
assert_predicate socket, :exist?
8488
end
8589
end
90+
91+
__END__
92+
diff --git a/go.mod b/go.mod
93+
index aaf7fbd..22b4ff6 100644
94+
--- a/go.mod
95+
+++ b/go.mod
96+
@@ -6,7 +6,7 @@ require (
97+
github.com/gen2brain/beeep v0.0.0-20220909211152-5a9ec94374f6
98+
github.com/spf13/pflag v1.0.5
99+
github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a
100+
- go.bug.st/serial v1.5.0
101+
+ go.bug.st/serial v1.6.2
102+
golang.org/x/crypto v0.5.0
103+
golang.org/x/term v0.4.0
104+
)
105+
diff --git a/go.sum b/go.sum
106+
index f0652fe..805352e 100644
107+
--- a/go.sum
108+
+++ b/go.sum
109+
@@ -26,6 +26,8 @@ github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a h1:a1b
110+
github.com/twpayne/go-pinentry-minimal v0.0.0-20220113210447-2a5dc4396c2a/go.mod h1:ARJJXqNuaxVS84jX6ST52hQh0TtuQZWABhTe95a6BI4=
111+
go.bug.st/serial v1.5.0 h1:ThuUkHpOEmCVXxGEfpoExjQCS2WBVV4ZcUKVYInM9T4=
112+
go.bug.st/serial v1.5.0/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE=
113+
+go.bug.st/serial v1.6.2 h1:kn9LRX3sdm+WxWKufMlIRndwGfPWsH1/9lCWXQCasq8=
114+
+go.bug.st/serial v1.6.2/go.mod h1:UABfsluHAiaNI+La2iESysd9Vetq7VRdpxvjx7CmmOE=
115+
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
116+
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
117+
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

0 commit comments

Comments
 (0)