File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
class Paranoia < Formula
2
2
desc "Inspect certificate authorites in contianer images"
3
3
homepage "https://github.com/jetstack/paranoia"
4
- url "https://github.com/jetstack/paranoia/archive/refs/tags/v0.2.0 .tar.gz"
5
- sha256 "c627437fc2ca74fb2e162501b8d44fff7de60f16788de7d19355cd621b8e6203 "
4
+ url "https://github.com/jetstack/paranoia/archive/refs/tags/v0.2.1 .tar.gz"
5
+ sha256 "19783029ddccfa5666e202156a7f2aa5014c952e42ecf5707838919fbbdb1c82 "
6
6
license "Apache-2.0"
7
- head "https://github.com/jetstack/paranoia" , branch : "main"
7
+ head "https://github.com/jetstack/paranoia.git " , branch : "main"
8
8
9
9
depends_on "go" => :build
10
10
11
11
def install
12
12
system "go" , "build" , *std_go_args ( ldflags : "-s -w" )
13
+ # Generate and then install man pages
14
+ system "go" , "run" , "./hack/generate-manual"
15
+ man1 . install Pathname . glob ( "man/*.1" )
16
+ # Use the binary to generate shell completions
17
+ generate_completions_from_executable ( bin /"paranoia" , "completion" )
13
18
end
14
19
15
20
test do
16
- # This string is the SHA256 of the "ISRG X1 Root" certificate
21
+ # This string is the SHA256 of the "ISRG X1 Root" certificate. This test verifies that
22
+ # paranoia can find that certificate in a known image (cert-manager v1.9.1).
17
23
assert_match "96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6" ,
18
24
shell_output ( "paranoia export --output wide quay.io/jetstack/cert-manager-controller:v1.9.1" )
19
25
end
You can’t perform that action at this time.
0 commit comments