Skip to content

Commit

Permalink
Fix more compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Dec 31, 2024
1 parent b2cc1c2 commit 505b7a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/network/qpackages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,18 @@ fn resolve_redownload_cache() -> Result<()> {
restored_dependencies: vec![],
};

let path = FileRepository::get_package_cache_path("beatsaber-hook", &Version::new(5, 1, 9));
let lib_path = path.join("lib").join("libbeatsaber-hook_5_1_9.so");

let resolved = {
let repo = get_repo()?;
let mut repo = get_repo()?;

let resolved = dependency::resolve(&shared_package.config, &repo)
.unwrap()
.collect_vec();

dependency::restore(&workspace_tmp_dir, &shared_package, &resolved, &mut repo)?;

let path = FileRepository::get_package_cache_path("beatsaber-hook", &Version::new(5, 1, 9));
let lib_path = path.join("lib").join("libbeatsaber-hook_5_1_9.so");

println!("Lib path: {lib_path:?}");

assert!(lib_path.exists());
Expand All @@ -219,7 +219,7 @@ fn resolve_redownload_cache() -> Result<()> {
};

{
let repo = get_repo()?;
let mut repo = get_repo()?;
assert!(!lib_path.exists());

dependency::restore(&workspace_tmp_dir, &shared_package, &resolved, &mut repo)?;
Expand Down

0 comments on commit 505b7a1

Please sign in to comment.