Skip to content

Commit 1f69bc3

Browse files
authored
Merge pull request #203730 from Homebrew/nushell-libgit2-1.9
nushell: update to use libgit2 1.9
2 parents 671aeb0 + a825047 commit 1f69bc3

File tree

1 file changed

+58
-10
lines changed

1 file changed

+58
-10
lines changed

Formula/n/nushell.rb

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
class Nushell < Formula
22
desc "Modern shell for the GitHub era"
33
homepage "https://www.nushell.sh"
4-
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
5-
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"
64
license "MIT"
7-
revision 1
5+
revision 2
86
head "https://github.com/nushell/nushell.git", branch: "main"
97

8+
stable do
9+
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
10+
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"
11+
12+
# libgit2 1.9 build patch
13+
patch :DATA
14+
end
15+
1016
livecheck do
1117
url :stable
1218
regex(/v?(\d+(?:[._]\d+)+)/i)
1319
strategy :github_latest
1420
end
1521

1622
bottle do
17-
sha256 cellar: :any, arm64_sequoia: "62e10339cf5c4ff5c7843d847e4273196db19ae731acdf13dc69e812ea5720d0"
18-
sha256 cellar: :any, arm64_sonoma: "0ddf79eae5d8ebd70131436862ea88fd0f8edb1882057061bf9bb82636b78818"
19-
sha256 cellar: :any, arm64_ventura: "ca2991396f58784cf3cb26924b8d940610f787f195d64c32514b167c34342a16"
20-
sha256 cellar: :any, sonoma: "6fb7e6320828abfaca040d0afc32da95df84fef057220df6c78881bca559a83d"
21-
sha256 cellar: :any, ventura: "d892426eb6a147c2abf2b94808caabe64ffd4f25a56b60eceb510dccb78bba4c"
22-
sha256 cellar: :any_skip_relocation, x86_64_linux: "e77c7dd2a77f4cbfce2deb012c6481a8c7898615216f320e8f887dc688f693be"
23+
sha256 cellar: :any, arm64_sequoia: "a25a1d727d750e850bc21be58a35ed017d1295dbbde66d1bf571c7e6b94b216c"
24+
sha256 cellar: :any, arm64_sonoma: "93bb51e8020d2117712274f8970e5aed7c9091d17e87678ef9511f5cf3f8ca44"
25+
sha256 cellar: :any, arm64_ventura: "80612bc90412f28b96056e3081ea1f2bf0dd2ef515572729ca05834561287cdd"
26+
sha256 cellar: :any, sonoma: "0aaf21248af61048b45a7d5b7d97e10f4989e7a13b12e9cf451007fc34ed4bb8"
27+
sha256 cellar: :any, ventura: "7af7cce0e2dbba3a6c41592a0cd2f2f8f83fa7040ac8fbb2454e5609c3aabfe1"
28+
sha256 cellar: :any_skip_relocation, x86_64_linux: "ad018dbb49364c9fbe462c267b7c626a47a8307068da49a3d34e36b1fc85cc48"
2329
end
2430

2531
depends_on "rust" => :build
@@ -30,7 +36,7 @@ class Nushell < Formula
3036

3137
on_linux do
3238
depends_on "pkgconf" => :build
33-
depends_on "libgit2@1.8" # for `nu_plugin_gstat`
39+
depends_on "libgit2" # for `nu_plugin_gstat`
3440
depends_on "libx11"
3541
depends_on "libxcb"
3642
end
@@ -50,3 +56,45 @@ def install
5056
pipe_output("#{bin}/nu -c '{ foo: 1, bar: homebrew_test} | get bar'", nil)
5157
end
5258
end
59+
60+
__END__
61+
diff --git a/Cargo.lock b/Cargo.lock
62+
index 0398b71..9d6021a 100644
63+
--- a/Cargo.lock
64+
+++ b/Cargo.lock
65+
@@ -1865,9 +1865,9 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
66+
67+
[[package]]
68+
name = "git2"
69+
-version = "0.19.0"
70+
+version = "0.20.0"
71+
source = "registry+https://github.com/rust-lang/crates.io-index"
72+
-checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724"
73+
+checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff"
74+
dependencies = [
75+
"bitflags 2.6.0",
76+
"libc",
77+
@@ -2600,9 +2600,9 @@ dependencies = [
78+
79+
[[package]]
80+
name = "libgit2-sys"
81+
-version = "0.17.0+1.8.1"
82+
+version = "0.18.0+1.9.0"
83+
source = "registry+https://github.com/rust-lang/crates.io-index"
84+
-checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224"
85+
+checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec"
86+
dependencies = [
87+
"cc",
88+
"libc",
89+
diff --git a/crates/nu_plugin_gstat/Cargo.toml b/crates/nu_plugin_gstat/Cargo.toml
90+
index 3255936..f9d8767 100644
91+
--- a/crates/nu_plugin_gstat/Cargo.toml
92+
+++ b/crates/nu_plugin_gstat/Cargo.toml
93+
@@ -19,4 +19,4 @@ bench = false
94+
nu-plugin = { path = "../nu-plugin", version = "0.101.0" }
95+
nu-protocol = { path = "../nu-protocol", version = "0.101.0" }
96+
97+
-git2 = "0.19"
98+
\ No newline at end of file
99+
+git2 = "0.20"
100+
\ No newline at end of file

0 commit comments

Comments
 (0)