"git-lfs: command not found" when cloning #2368
-
I am trying to make a new formula for mdzk. I'm new to Homebrew formulas and Ruby, but this is what I've got right now: class Mdzk < Formula
homepage "https://mdzk-rs.github.io"
version "0.4.2"
license "MPL-2.0"
url "https://github.com/mdzk-rs/mdzk.git", tag: "0.4.2"
depends_on "git-lfs" => :build
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
system "mdzk", "init", "test_mdzk"
assert_predicate testpath/"test_mdzk", :exist?
end
end As you can see, the cloning depends on Git LFS. I saw in an issue that simply putting
So git-lfs was obviously not installed as a dependency. Has anyone got any idea on how I can solve this? Any help is very much appreciated 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Based on the latter part of the discussion in Homebrew/homebrew-core#30190, it doesn't look like just adding You might need to create your own custom download strategy to handle clones that need |
Beta Was this translation helpful? Give feedback.
Based on the latter part of the discussion in Homebrew/homebrew-core#30190, it doesn't look like just adding
depends_on "git-lfs" => :build
will work, unfortunately.You might need to create your own custom download strategy to handle clones that need
git-lfs
.