Wish: Document how to test with modified `libgit2`
stappersg opened this issue · comments
Hi,
Here the person that encountered issue #988 (and suspects that #1005 is also involved).
My wish is that cargo-generate
has documented
how to test with a local modified source of libgit2
.
In Cargo.toml
is no reference to "libgit".
If there was, it would be starting point for changing into something local.
File Cargo.lock
has several references to git2
.
But Cargo.lock
is a generated file, I don't know if would make sense to modify it.
Regards Stappers
There is a thing as git-fetch-with-cli = true
.
Learnt that from #817 (comment) it might solve #664 (Hi @tiann (reporter of #664)).
if you look at the Cargo.toml
you'll find the following:
[features]
default = ["vendored-libgit2"]
vendored-libgit2 = ["git2/vendored-libgit2"]
As you can see libgit2
is a dependency, or more precisely it's a feature called vendored-libgit2
of git2
.
There is a thing as git-fetch-with-cli = true.
Yes, you can force cargo (thus also cargo-generate) into using the git cli for fetch.
It's documented here: https://doc.rust-lang.org/cargo/reference/config.html#configuration-format
[net]
retry = 3 # network retries
git-fetch-with-cli = true # use the `git` executable for git operations
offline = true # do not access the network
if you look at the
Cargo.toml
you'll find the following:[features] default = ["vendored-libgit2"] vendored-libgit2 = ["git2/vendored-libgit2"]As you can see
libgit2
is a dependency, or more precisely it's a feature calledvendored-libgit2
ofgit2
.
With what needs the ["git2/vendored-libgit2"]
be replaced into
to get location of modified libgit2 in correct format?
There is a thing as git-fetch-with-cli = true.
Yes, you can force cargo (thus also cargo-generate) into using the git cli for fetch.
Ah, good to known. Thanks.
(And my apology that I did bring it up in this issue.)
if you look at the
Cargo.toml
you'll find the following:[features] default = ["vendored-libgit2"] vendored-libgit2 = ["git2/vendored-libgit2"]As you can see
libgit2
is a dependency, or more precisely it's a feature calledvendored-libgit2
ofgit2
.With what needs the
["git2/vendored-libgit2"]
be replaced into to get location of modified libgit2 in correct format?
https://github.com/rust-lang/git2-rs is where trail is leading to.
And I'm already chasing other trails, right now I don't know if I should pursuit a libgit2
issue.
right now I don't know if I should pursuit a
libgit2
issue.
Meanwhile I know I won't.