Hugal31 / yara-rust

Rust bindings for VirusTotal/Yara
Apache License 2.0
77 stars 28 forks source link

Vendored build fails from crates.io #48

Closed Guiguiprim closed 3 years ago

Guiguiprim commented 3 years ago

With the following in Cargo.toml: yara = { version = "0.10", default-features = false, features = ["vendored", "bundled-4_1_2"] }

The build fails with:

error: failed to run custom build command for `yara-sys v0.10.0`
Caused by:
  process didn't exit successfully: `/home/me/project/target/debug/build/yara-sys-b728990ce16f2f1e/build-script-build` (exit status: 1)
  --- stderr
  error occurred: File exists (os error 17)

Looking at /home/me/project/target/debug/build/yara-sys-b728990ce16f2f1e/out, there is a broken link /home/me/project/target/debug/build/yara-sys-b728990ce16f2f1e/out/yara to not existing /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/yara-sys-0.10.0/yara

For what I could piece together:

So I guess in vendored mode the sources should be download if needed (or they should be included in the crates.io archive)

ikrivosheev commented 3 years ago

@Hugal31 maybe you need pipeline for publication on tag?

ikrivosheev commented 3 years ago

@Hugal31 0.11.0 has same problem...

Hugal31 commented 3 years ago

It should work now on 0.11.1. Sorry for the wait!