Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed Jun 5, 2024
1 parent 2373483 commit 476f81c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum Commands {
auth_file: Option<PathBuf>,

/// The path to 'pixi.toml' or 'pyproject.toml'
#[arg(short, long, default_value = cwd().join("pixi.toml").into_os_string())]
#[arg(required = true, default_value = cwd().join("pixi.toml").into_os_string())]
manifest_path: PathBuf,

/// Output file to write the pack to
Expand All @@ -59,7 +59,7 @@ enum Commands {

/// PyPI dependencies are not supported.
/// This flag allows packing even if PyPI dependencies are present.
#[arg(short, long, default_value = "false")]
#[arg(long, default_value = "false")]
ignore_pypi_errors: bool,
},

Expand Down
8 changes: 4 additions & 4 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ async fn test_inject(options: Options, mut required_fs_objects: Vec<&'static str
let unpack_options = options.unpack_options;
let pack_file = unpack_options.pack_file.clone();

pack_options
.additional_packages
.push(PathBuf::from("examples/webserver/pavel-delivers.conda"));
pack_options.additional_packages.push(PathBuf::from(
"examples/webserver/my-webserver-0.1.0-pyh4616a5c_0.conda",
));

pack_options.manifest_path = PathBuf::from("examples/webserver/pixi.toml");

Expand All @@ -130,7 +130,7 @@ async fn test_inject(options: Options, mut required_fs_objects: Vec<&'static str
assert!(activate_file.is_file());

// output env should contain files from the injected package
required_fs_objects.push("pavel-delivers.json");
required_fs_objects.push("conda-meta/my-webserver-0.1.0-pyh4616a5c_0.json");

required_fs_objects
.iter()
Expand Down

0 comments on commit 476f81c

Please sign in to comment.