Skip to content

Commit

Permalink
repo: clone to /tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Oct 27, 2024
1 parent fa05629 commit fb144d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 155 deletions.
160 changes: 11 additions & 149 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ serde_json = { version = "1", features = ["preserve_order"] }

cargo_metadata = "0.18"
duct = "0.13"
dirs = "5"
walkdir = "2"
nextest-metadata = "0.12"

Expand Down
6 changes: 1 addition & 5 deletions src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ impl Repo {
}

pub fn git_clone(user: &str, repo: &str) -> Result<Utf8PathBuf> {
let dir = Utf8PathBuf::from_path_buf(dirs::template_dir().unwrap())
.unwrap()
.join("os-checker-plugin-cargo")
.join(user)
.join(repo);
let dir = Utf8PathBuf::from_iter(["/tmp", "os-checker-plugin-cargo", user, repo]);
fs::create_dir_all(&dir)?;

let url = format!("https://github.com/{user}/{repo}.git");
Expand Down

0 comments on commit fb144d5

Please sign in to comment.