Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Nov 22, 2024
1 parent 5cb110c commit b1fc526
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn package_record_from_archive(file: &Path) -> Result<PackageRecord> {

/// Install a package into the environment and write a `conda-meta` file that
/// contains information about how the file was linked.
pub async fn install_package_to_environment_from_archive(
async fn install_package_to_environment_from_archive(
target_prefix: &Path,
package_path: PathBuf,
repodata_record: RepoDataRecord,
Expand Down Expand Up @@ -221,7 +221,7 @@ pub async fn install_package_to_environment_from_archive(
}

// https://github.com/conda/rattler/pull/937
pub async fn link_package_from_archive(
async fn link_package_from_archive(
package_path: &Path,
target_dir: &Path,
driver: &InstallDriver,
Expand Down
12 changes: 10 additions & 2 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ fn options(#[default("simple-example")] test_case: String) -> Options {
// copy pixi.toml and pixi.lock to temporary location
let pixi_toml = output_dir.path().join("pixi.toml");
let pixi_lock = output_dir.path().join("pixi.lock");
std::fs::copy(format!("tests/resources/{}/pixi.toml", test_case), &pixi_toml).unwrap();
std::fs::copy(format!("tests/resources/{}/pixi.lock", test_case), &pixi_lock).unwrap();
std::fs::copy(
format!("tests/resources/{}/pixi.toml", test_case),
&pixi_toml,
)
.unwrap();
std::fs::copy(
format!("tests/resources/{}/pixi.lock", test_case),
&pixi_lock,
)
.unwrap();

let pixi_install = Command::new("pixi")
.arg("install")
Expand Down

0 comments on commit b1fc526

Please sign in to comment.