Skip to content

Commit

Permalink
frormat
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Dec 2, 2024
1 parent 9ac954b commit 6bb1f97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ pub async fn pack(options: PackOptions) -> Result<()> {

for package in packages {
match package {
LockedPackageRef::Conda(CondaPackageData::Binary(binary_data)) => conda_packages_from_lockfile.push(binary_data.clone()),
LockedPackageRef::Conda(CondaPackageData::Source(_)) => anyhow::bail!("Conda source packages are not yet supported by pixi-pack"),
LockedPackageRef::Conda(CondaPackageData::Binary(binary_data)) => {
conda_packages_from_lockfile.push(binary_data.clone())
}
LockedPackageRef::Conda(CondaPackageData::Source(_)) => {
anyhow::bail!("Conda source packages are not yet supported by pixi-pack")
}
LockedPackageRef::Pypi(_, _) => {
if options.ignore_pypi_errors {
tracing::warn!(
Expand Down
4 changes: 3 additions & 1 deletion tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ async fn test_inject_failure(options: Options) {

#[rstest]
#[tokio::test]
async fn test_includes_repodata_patches(#[with(PathBuf::from("examples/repodata-patches/pixi.toml"))] options: Options) {
async fn test_includes_repodata_patches(
#[with(PathBuf::from("examples/repodata-patches/pixi.toml"))] options: Options,
) {
let mut pack_options = options.pack_options;
pack_options.platform = Platform::Win64;
let pack_file = options.unpack_options.pack_file.clone();
Expand Down

0 comments on commit 6bb1f97

Please sign in to comment.