diff --git a/src/main.rs b/src/main.rs index 47c836f..4accc3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ enum Commands { auth_file: Option, /// 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 @@ -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, }, diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 6bfec70..6dd3fa3 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -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"); @@ -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()