Skip to content

Commit 557c4ac

Browse files
committed
Call git from command line to avoid cargo issue.
See: rust-lang/cargo#2589
1 parent 335dbc9 commit 557c4ac

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ homepage = "https://github.com/gz/rust-rumpkernel"
1111
repository = "https://github.com/gz/rust-rumpkernel"
1212

1313
[build-dependencies]
14-
git2 = "0.8"
15-
num_cpus = "1.9"
14+
#git2 = "0.8"
15+
num_cpus = "1.9"

build.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22
use std::path::{Path, PathBuf};
33
use std::process::Command;
44

5-
use git2::Repository;
5+
//use git2::Repository;
66
use num_cpus;
77

88
fn artefacts_built(build_dir: &Path) -> bool {
@@ -39,10 +39,14 @@ fn main() {
3939

4040
println!("CLONE {:?}", out_dir);
4141
let url = "https://github.com/rumpkernel/buildrump.sh.git";
42-
match Repository::clone(url, out_dir.clone()) {
42+
Command::new("git")
43+
.args(&["clone", "--depth=1", url, out_dir.as_str()])
44+
.status()
45+
.unwrap();
46+
/*match Repository::clone(url, out_dir.clone()) {
4347
Ok(_) => (),
4448
Err(e) => panic!("failed to clone: {}", e),
45-
};
49+
};*/
4650

4751
println!("BUILD {:?}", out_dir);
4852
env::set_var("TARGET", "x86_64-netbsd");

0 commit comments

Comments
 (0)