Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
fix tests (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirovmm authored Jan 24, 2022
1 parent ea7a837 commit cedefee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dove/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ where
let mut ctx = cmd.context(cwd, move_args)?;

if !check_manifest_hash(&ctx) {
// dove clean
run_internal_clean(&mut ctx)?;
}
cmd.apply(&mut ctx)
Expand Down Expand Up @@ -234,12 +235,9 @@ fn check_manifest_hash(ctx: &Context) -> bool {
/// Writing the hash move.toml to file
fn store_manifest_checksum(ctx: &Context) -> Result<()> {
let build_path = ctx.project_dir.join("build");
if !build_path.exists() {
return Ok(());
}
let path_version = build_path.join(HASH_FILE_NAME);
if path_version.exists() {
fs::remove_file(&path_version)?;
if !build_path.exists() || path_version.exists() {
return Ok(());
}
fs::write(&path_version, ctx.manifest_hash.to_string())?;
Ok(())
Expand Down

0 comments on commit cedefee

Please sign in to comment.