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
Dependency on system git command #9
Comments
This has an optional dependency on |
That's really odd, I have libpcre2-dev installed (which provides libpcre2-8) and the build does fail without git... maybe the problem is something else? Here's a backtrace from a fresh rebuild in that environment:
Sorry in advance if I'm being dumb about something here :P Edit: This is with rustc 1.34.2 and cargo 1.34.0 if that's important |
Hmm, not sure. As long as you aren't specifically requesting a static build, then It looks like you'll need to do some debugging unfortunately. Maybe insert some print statements into the build script. |
It looks like the problem was a combo of a few things. The project I'm building is ripgrep, which has its own |
I was trying to build a project using cargo-deb in a minimal Docker container, and had to spend a while debugging why I couldn't get it to build. Eventually I tracked it down to the
build.rs
of this project, namely these few lines.While depending on the user having git installed is usually a reasonable assumption, it might be a good idea to instead use something like git2 instead, since it's both something you can declare in
Cargo.toml
and more programmatic than calling a system command and unwrapping its return value. Thanks! :)The text was updated successfully, but these errors were encountered: