mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
fix(loader): remove CROSS_RUNNER temorary directory path
This isn't used in CI anymore.
This commit is contained in:
parent
8eafafaa16
commit
ba17ca14a0
|
|
@ -1142,14 +1142,7 @@ impl Loader {
|
|||
format!("{:x}", hasher.finish())
|
||||
};
|
||||
|
||||
let mut lock_path = if env::var("CROSS_RUNNER").is_ok() {
|
||||
tempfile::tempdir()
|
||||
.expect("create a temp dir")
|
||||
.path()
|
||||
.to_path_buf()
|
||||
} else {
|
||||
etcetera::choose_base_strategy()?.cache_dir()
|
||||
};
|
||||
let mut lock_path = etcetera::choose_base_strategy()?.cache_dir();
|
||||
lock_path.push(format!(
|
||||
"tree-sitter{slash}lock{slash}{name}-{lock_hash}.lock",
|
||||
slash = std::path::MAIN_SEPARATOR,
|
||||
|
|
|
|||
Loading…
Reference in a new issue