Skip to content

Commit 714301a

Browse files
committed
paranoia 0.2.1
Update source tar Add man pages Install shell completions Remove trailing whitespace Correct source repo URL Closes #1. Signed-off-by: James Laverack <james@laverack.dev>
1 parent 8d27eb6 commit 714301a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Formula/paranoia.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
class Paranoia < Formula
22
desc "Inspect certificate authorites in contianer images"
33
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"
66
license "Apache-2.0"
7-
head "https://github.com/jetstack/paranoia", branch: "main"
7+
head "https://github.com/jetstack/paranoia.git", branch: "main"
88

99
depends_on "go" => :build
1010

1111
def install
1212
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")
1318
end
1419

1520
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).
1723
assert_match "96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6",
1824
shell_output("paranoia export --output wide quay.io/jetstack/cert-manager-controller:v1.9.1")
1925
end

0 commit comments

Comments
 (0)