Skip to content

Commit

Permalink
mise 2025.1.15
Browse files Browse the repository at this point in the history
mise: remove libgit2 dep

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
mise-en-dev authored and chenrui333 committed Jan 26, 2025
1 parent 0eef1c3 commit f24840d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions Formula/m/mise.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Mise < Formula
desc "Polyglot runtime manager (asdf rust clone)"
homepage "https://mise.jdx.dev/"
url "https://github.com/jdx/mise/archive/refs/tags/v2025.1.14.tar.gz"
sha256 "6745ef5b1be5478848e1e45d826dc1e37b177efeefc5fedf6fb184ddb7204aac"
url "https://github.com/jdx/mise/archive/refs/tags/v2025.1.15.tar.gz"
sha256 "d3f2db473b9639e77f63e1dca462b7ca8b5a3fee8083ce7f196c1463745fc69d"
license "MIT"
head "https://github.com/jdx/mise.git", branch: "main"

Expand All @@ -23,7 +23,6 @@ class Mise < Formula
depends_on "pkgconf" => :build
depends_on "rust" => :build

depends_on "[email protected]" # needs https://github.com/rust-lang/git2-rs/issues/1109 to support libgit2 1.9
depends_on "openssl@3"
depends_on "usage"

Expand All @@ -34,8 +33,6 @@ class Mise < Formula
end

def install
ENV["LIBGIT2_NO_VENDOR"] = "1"

# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
ENV["OPENSSL_NO_VENDOR"] = "1"
Expand Down Expand Up @@ -70,14 +67,5 @@ def check_binary_linkage(binary, library)
system bin/"mise", "settings", "set", "experimental", "true"
system bin/"mise", "use", "[email protected]"
assert_match "1.23", shell_output("#{bin}/mise exec -- go version")

[
Formula["[email protected]"].opt_lib/shared_library("libgit2"),
Formula["openssl@3"].opt_lib/shared_library("libssl"),
Formula["openssl@3"].opt_lib/shared_library("libcrypto"),
].each do |library|
assert check_binary_linkage(bin/"mise", library),
"No linkage with #{library.basename}! Cargo is likely using a vendored version."
end
end
end

0 comments on commit f24840d

Please sign in to comment.