Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nushell: update to use libgit2 1.9 #203730

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 52 additions & 4 deletions Formula/n/nushell.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
class Nushell < Formula
desc "Modern shell for the GitHub era"
homepage "https://www.nushell.sh"
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"
license "MIT"
revision 1
revision 2
head "https://github.com/nushell/nushell.git", branch: "main"

stable do
url "https://github.com/nushell/nushell/archive/refs/tags/0.101.0.tar.gz"
sha256 "43e4a123e86f0fb4754e40d0e2962b69a04f8c2d58470f47cb9be81daabab347"

# libgit2 1.9 build patch
patch :DATA
end

livecheck do
url :stable
regex(/v?(\d+(?:[._]\d+)+)/i)
Expand All @@ -30,7 +36,7 @@ class Nushell < Formula

on_linux do
depends_on "pkgconf" => :build
depends_on "libgit2@1.8" # for `nu_plugin_gstat`
depends_on "libgit2" # for `nu_plugin_gstat`
depends_on "libx11"
depends_on "libxcb"
end
Expand All @@ -50,3 +56,45 @@ def install
pipe_output("#{bin}/nu -c '{ foo: 1, bar: homebrew_test} | get bar'", nil)
end
end

__END__
diff --git a/Cargo.lock b/Cargo.lock
index 0398b71..9d6021a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1865,9 +1865,9 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"

[[package]]
name = "git2"
-version = "0.19.0"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724"
+checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff"
dependencies = [
"bitflags 2.6.0",
"libc",
@@ -2600,9 +2600,9 @@ dependencies = [

[[package]]
name = "libgit2-sys"
-version = "0.17.0+1.8.1"
+version = "0.18.0+1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224"
+checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec"
dependencies = [
"cc",
"libc",
diff --git a/crates/nu_plugin_gstat/Cargo.toml b/crates/nu_plugin_gstat/Cargo.toml
index 3255936..f9d8767 100644
--- a/crates/nu_plugin_gstat/Cargo.toml
+++ b/crates/nu_plugin_gstat/Cargo.toml
@@ -19,4 +19,4 @@ bench = false
nu-plugin = { path = "../nu-plugin", version = "0.101.0" }
nu-protocol = { path = "../nu-protocol", version = "0.101.0" }

-git2 = "0.19"
\ No newline at end of file
+git2 = "0.20"
\ No newline at end of file
Loading