dlecan / rust-crosscompiler-arm

Docker images for Rust dedicated to cross compilation for ARM v6 and more
MIT License
50 stars 16 forks source link

`vergen` fails to read build time information #21

Open michaelherger opened 3 years ago

michaelherger commented 3 years ago

When I use your Docker image to compile eg. librespot, it would fail to read the Git commit ID. The project uses vergen to expose that information in environment variables. Even though I mount the project's root folder as /source it seems to fail to extract that information. In my own image I use to compile for other platforms I do the same volume mapping, and I don't see the same issue. I have no idea why that would happen in yours.

michaelherger commented 3 years ago

Oh, if my reading is correct, then vergen depends on libgit2. Which probably isn't installed in your image?

michaelherger commented 3 years ago

Haha... I wanted to give adding git support a try. But the Debian base image is so old, it wouldn't find any of the dependencies any more... I guess that's a "won't fix", unless somebody brings the whole image up to date.