Load world extensions from commit snapshots with last-good recovery
This commit is contained in:
@@ -24,7 +24,10 @@ fn git(cwd: &Path, args: &[&str]) {
|
||||
async fn several_mb_git_push() {
|
||||
static BUILT: OnceLock<std::path::PathBuf> = OnceLock::new();
|
||||
let component = BUILT.get_or_init(|| {
|
||||
let target = Path::new(env!("CARGO_TARGET_TMPDIR")).join("hook-git");
|
||||
let target = std::path::PathBuf::from(
|
||||
std::env::var_os("CARGO_TARGET_DIR")
|
||||
.expect("CARGO_TARGET_DIR must name the executor's shared target directory"),
|
||||
);
|
||||
let userland = Path::new(env!("CARGO_MANIFEST_DIR")).join("../userland");
|
||||
if !userland.join("cwd-init/init.o").is_file() {
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user