Skip to content

Commit f7c33e7

Browse files
tests: no dependency packages still produce vendored tarballs now.
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent e08586c commit f7c33e7

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

cargo/tests/behaviour.rs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,14 @@ async fn vendor_source(source: &str, filter: bool) -> io::Result<PathBuf> {
188188
outdir: Some(raw_outdir.clone()),
189189
subcommands: None,
190190
};
191-
if *"https://github.com/elliot40404/bonk/archive/refs/tags/v0.4.0.tar.gz" != *source {
192-
assert!(raw_opts(raw_args, false).is_ok());
193-
} else {
194-
assert!(raw_opts(raw_args, false).is_err());
195-
}
191+
assert!(raw_opts(raw_args, false).is_ok());
196192
let vendor_path = raw_outdir.join("vendor");
197193
let cargo_config_path = raw_outdir.join(".cargo").join("config.toml");
198194
let cargo_lock_path = raw_outdir.join("Cargo.lock");
199-
if *"https://github.com/elliot40404/bonk/archive/refs/tags/v0.4.0.tar.gz" != *source {
200-
assert!(vendor_tarball_path.is_file());
201-
assert!(vendor_path.is_dir());
202-
assert!(cargo_config_path.is_file());
203-
assert!(cargo_lock_path.is_file());
204-
} else {
205-
assert!(!vendor_tarball_path.is_file());
206-
assert!(!vendor_path.is_dir());
207-
assert!(!cargo_config_path.is_file());
208-
assert!(!cargo_lock_path.is_file());
209-
}
195+
assert!(vendor_tarball_path.is_file());
196+
assert!(vendor_path.is_dir());
197+
assert!(cargo_config_path.is_file());
198+
assert!(cargo_lock_path.is_file());
210199
Ok(outfile)
211200
}
212201

0 commit comments

Comments
 (0)