|
1 | 1 | class CargoAudit < Formula |
2 | 2 | desc "Audit Cargo.lock files for crates with security vulnerabilities" |
3 | 3 | homepage "https://rustsec.org/" |
| 4 | + url "https://github.com/rustsec/rustsec/archive/refs/tags/cargo-audit/v0.21.0.tar.gz" |
| 5 | + sha256 "343242874edd00c2aa49c7481af0c4735ebcf682d04710f0c02a56a9015f6092" |
4 | 6 | license any_of: ["Apache-2.0", "MIT"] |
5 | 7 | head "https://github.com/rustsec/rustsec.git", branch: "main" |
6 | 8 |
|
7 | | - stable do |
8 | | - url "https://github.com/rustsec/rustsec/archive/refs/tags/cargo-audit/v0.20.0.tar.gz" |
9 | | - sha256 "695e8d0526bbc672d227a7f8b4592a5fd6641a9e819767146a8a4e3a32e57e5c" |
10 | | - |
11 | | - # time crate build patch, upstream PR ref, https://github.com/rustsec/rustsec/pull/1170 |
12 | | - patch :DATA |
13 | | - end |
14 | | - |
15 | 9 | livecheck do |
16 | 10 | url :stable |
17 | 11 | regex(%r{^cargo-audit/v?(\d+(?:\.\d+)+)$}i) |
@@ -53,33 +47,3 @@ def install |
53 | 47 | assert_match "error: 1 vulnerability found!", shell_output("#{bin}/cargo-audit audit 2>&1", 1) |
54 | 48 | end |
55 | 49 | end |
56 | | - |
57 | | -__END__ |
58 | | -diff --git a/Cargo.lock b/Cargo.lock |
59 | | -index 3460499..0efa894 100644 |
60 | | ---- a/Cargo.lock |
61 | | -+++ b/Cargo.lock |
62 | | -@@ -2911,9 +2911,9 @@ dependencies = [ |
63 | | - |
64 | | - [[package]] |
65 | | - name = "time" |
66 | | --version = "0.3.32" |
67 | | -+version = "0.3.36" |
68 | | - source = "registry+https://github.com/rust-lang/crates.io-index" |
69 | | --checksum = "fe80ced77cbfb4cb91a94bf72b378b4b6791a0d9b7f09d0be747d1bdff4e68bd" |
70 | | -+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" |
71 | | - dependencies = [ |
72 | | - "deranged", |
73 | | - "itoa", |
74 | | -@@ -2934,9 +2934,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" |
75 | | - |
76 | | - [[package]] |
77 | | - name = "time-macros" |
78 | | --version = "0.2.17" |
79 | | -+version = "0.2.18" |
80 | | - source = "registry+https://github.com/rust-lang/crates.io-index" |
81 | | --checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" |
82 | | -+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" |
83 | | - dependencies = [ |
84 | | - "num-conv", |
85 | | - "time-core", |
0 commit comments