Skip to content

Commit

Permalink
feat!: made plugin pack command save plugin archive in release/debug …
Browse files Browse the repository at this point in the history
…folder
  • Loading branch information
dodokek committed Feb 13, 2025
1 parent dd37fe4 commit e87bbdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/plugin/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn cmd(pack_debug: bool, target_dir: &PathBuf) -> Result<()> {

let compressed_file = File::create(format!(
"{}/{}-{}.tar.gz",
target_dir.display(),
build_dir.display(),
&normalized_package_name,
cargo_manifest.package.version
))
Expand Down
3 changes: 2 additions & 1 deletion tests/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ fn test_cargo_pack() {
let plugin_path = Path::new(TESTS_DIR)
.join(PACK_PLUGIN_NAME)
.join("tmp_target");
let tar_archive = File::open(plugin_path.join("test_pack_plugin-0.1.0.tar.gz")).unwrap();
let tar_archive =
File::open(plugin_path.join("release/test_pack_plugin-0.1.0.tar.gz")).unwrap();
let buf_reader = BufReader::new(tar_archive);
let decompressor = GzDecoder::new(buf_reader);
let mut archive = Archive::new(decompressor);
Expand Down

0 comments on commit e87bbdf

Please sign in to comment.