Skip to content

Commit

Permalink
Improved the way gitignore/soldeerignore works (#75)
Browse files Browse the repository at this point in the history
* Improved the way gitignore/soldeerignore works (now it works like gitignore).
  • Loading branch information
mario-eth committed Jun 30, 2024
1 parent 506b296 commit 5f0550b
Show file tree
Hide file tree
Showing 4 changed files with 334 additions and 24 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ toml_edit = "0.22.13"
uuid = {version = "1.8.0", features = ["serde", "v4"]}
walkdir = "2.5.0"
yansi = "1.0.1"
yash-fnmatch = "1.1.1"
zip = {version = "2.1.3", default-features = false, features = ["deflate"]}
zip-extract = "0.1.3"

Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ libs = ["dependencies"]
fn soldeer_push_dry_run() {
let _ = remove_dir_all(DEPENDENCY_DIR.clone());
let _ = remove_file(LOCK_FILE.clone());
// in case this exists we clean it before setting up the tests
let path_dependency = env::current_dir().unwrap().join("test").join("test.zip");
if path_dependency.exists() {
let _ = remove_file(&path_dependency);
}

let command = Subcommands::Push(Push {
dependency: "@test~1.1".to_string(),
Expand All @@ -587,8 +592,6 @@ libs = ["dependencies"]
}
}

let path_dependency = env::current_dir().unwrap().join("test").join("test.zip");

assert!(Path::new(&path_dependency).exists());
let archive = File::open(&path_dependency);
let archive = ZipArchive::new(archive.unwrap());
Expand Down
Loading

0 comments on commit 5f0550b

Please sign in to comment.