Skip to content

Commit

Permalink
Call git from command line to avoid cargo issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
gz committed May 11, 2019
1 parent 335dbc9 commit 557c4ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ homepage = "https://github.com/gz/rust-rumpkernel"
repository = "https://github.com/gz/rust-rumpkernel"

[build-dependencies]
git2 = "0.8"
num_cpus = "1.9"
#git2 = "0.8"
num_cpus = "1.9"
10 changes: 7 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::env;
use std::path::{Path, PathBuf};
use std::process::Command;

use git2::Repository;
//use git2::Repository;
use num_cpus;

fn artefacts_built(build_dir: &Path) -> bool {
Expand Down Expand Up @@ -39,10 +39,14 @@ fn main() {

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

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

0 comments on commit 557c4ac

Please sign in to comment.