Hi.
I tried to install primitiv-rust. cargo build
failed with following error:
Compiling cexpr v0.2.3
Compiling env_logger v0.4.3
Compiling primitiv-sys v0.3.0 (file:///Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys)
error: failed to run custom build command for `primitiv-sys v0.3.0 (file:///Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys)`
process didn't exit successfully: `/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/target/debug/build/primitiv-sys-414555f0b7236a02/build-script-build` (exit code: 101)
--- stdout
primitiv-sys/build.rs:65: out_dir = "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/target/debug/build/primitiv-sys-e8fd6c3c83e9f738/out/lib-1ea9ba875ace79ca884ab448d7c0842d78d4b18d"
primitiv-sys/build.rs:70: framework_library_path = "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/target/debug/build/primitiv-sys-e8fd6c3c83e9f738/out/lib-1ea9ba875ace79ca884ab448d7c0842d78d4b18d/lib/libprimitiv.so"
primitiv-sys/build.rs:72: library_path = "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/target/debug/build/primitiv-sys-e8fd6c3c83e9f738/out/lib-1ea9ba875ace79ca884ab448d7c0842d78d4b18d/lib/libprimitiv_c.so"
primitiv-sys/build.rs:82: source = "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d"
primitiv-sys/build.rs:153: Executing "git" "clone" "--depth=1" "https://github.com/primitiv/primitiv" "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d"
primitiv-sys/build.rs:157: Command "git" "clone" "--depth=1" "https://github.com/primitiv/primitiv" "/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d" finished successfully
primitiv-sys/build.rs:153: Executing "git" "--git-dir=/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d/.git" "checkout" "1ea9ba875ace79ca884ab448d7c0842d78d4b18d"
--- stderr
Cloning into '/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d'...
fatal: reference is not a tree: 1ea9ba875ace79ca884ab448d7c0842d78d4b18d
thread 'main' panicked at 'failed to execute "git" "--git-dir=/Users/takeshi.okada/src/github.com/primitiv/primitiv-rust/primitiv-sys/target/source-1ea9ba875ace79ca884ab448d7c0842d78d4b18d/.git" "checkout" "1ea9ba875ace79ca884ab448d7c0842d78d4b18d"', primitiv-sys/build.rs:155:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
The following diff solved the error and xor example seems works well:
$ git diff
diff --git a/primitiv-sys/build.rs b/primitiv-sys/build.rs
index 6fa4df2..0b16a9f 100644
--- a/primitiv-sys/build.rs
+++ b/primitiv-sys/build.rs
@@ -10,7 +10,7 @@ use std::result::Result;
const FRAMEWORK_LIBRARY: &'static str = "primitiv";
const LIBRARY: &'static str = "primitiv_c";
const REPOSITORY: &'static str = "https://github.com/primitiv/primitiv";
-const TAG: &'static str = "1ea9ba875ace79ca884ab448d7c0842d78d4b18d";
+const TAG: &'static str = "develop";
macro_rules! log {
($fmt:expr) => (println!(concat!("primitiv-sys/build.rs:{}: ", $fmt), line!()));
bug: minor