Skip to content

Commit 965aa13

Browse files
authored
Merge pull request #166949 from Homebrew/libgit2@1.5-1.6-changes
libgit2@1.6: deprecate, libgit2@1.5: remove head and livecheck
2 parents d34e0ca + 7ab6f82 commit 965aa13

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

Formula/c/cargo-edit.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ class CargoEdit < Formula
1919
sha256 cellar: :any_skip_relocation, x86_64_linux: "79df633b377c8c2fd2ba9f73ee41ca825f7158688d8a378110f56625c712775d"
2020
end
2121

22+
# `cargo-edit` uses the API of older crates-index that requires older git2/libgit2.
23+
# So it would need something like https://github.com/killercup/cargo-edit/pull/870
24+
# at minimum before being able to try updating to newer git2.
25+
#
26+
# However, it seems upstream is working on killing off `cargo-edit`:
27+
# * https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101
28+
# * https://github.com/killercup/cargo-edit/issues/864#issuecomment-1645735265
29+
deprecate! date: "2024-04-11", because: "uses deprecated `libgit2@1.6`"
30+
2231
depends_on "pkg-config" => :build
2332
depends_on "rust" => :build
2433
depends_on "rustup-init" => :test

Formula/lib/libgit2@1.5.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ class Libgit2AT15 < Formula
55
sha256 "57638ac0e319078f56a7e17570be754515e5b1276d3750904b4214c92e8fa196"
66
license "GPL-2.0-only" => { with: "GCC-exception-2.0" }
77
revision 1
8-
head "https://github.com/libgit2/libgit2.git", branch: "maint/v1.5"
9-
10-
livecheck do
11-
url :stable
12-
regex(/v?(1\.5(?:\.\d+)+)/i)
13-
end
148

159
bottle do
1610
sha256 cellar: :any, arm64_sonoma: "4064a3e2a44b267384af9b2e5e6476ca7928f609a700cdde11cedb84bb99ce78"

Formula/lib/libgit2@1.6.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ class Libgit2AT16 < Formula
44
url "https://github.com/libgit2/libgit2/archive/refs/tags/v1.6.5.tar.gz"
55
sha256 "0f09dd49e409913c94df00eeb5b54f8b597905071b454c7f614f8c6e1ddb8d75"
66
license "GPL-2.0-only" => { with: "GCC-exception-2.0" }
7-
head "https://github.com/libgit2/libgit2.git", branch: "maint/v1.6"
8-
9-
livecheck do
10-
url :stable
11-
regex(/v?(1\.6(?:\.\d+)+)/i)
12-
end
137

148
bottle do
159
sha256 cellar: :any, arm64_sonoma: "83f4ee26d02fbfda076cdebe727390dd4db92ec8cb3791115212f43d6047eeed"
@@ -23,6 +17,9 @@ class Libgit2AT16 < Formula
2317

2418
keg_only :versioned_formula
2519

20+
# https://github.com/libgit2/libgit2/?tab=security-ov-file
21+
deprecate! date: "2024-04-11", because: :unmaintained
22+
2623
depends_on "cmake" => :build
2724
depends_on "pkg-config" => :build
2825
depends_on "libssh2"

audit_exceptions/versioned_head_spec_allowlist.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
"bash-completion@2",
33
"botan@2",
44
"imagemagick@6",
5-
"libgit2@1.5",
6-
"libgit2@1.6",
75
"mbedtls@2"
86
]

0 commit comments

Comments
 (0)