Skip to content

Commit

Permalink
improve(mcl.commands.deploy_spec): Improve logging when reusing deplo…
Browse files Browse the repository at this point in the history
…y spec
  • Loading branch information
PetarKirov committed Aug 14, 2024
1 parent bd0e087 commit b25f308
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/mcl/src/src/mcl/commands/deploy_spec.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import mcl.utils.path : resultDir;
import mcl.utils.env : parseEnv;
import mcl.utils.cachix : cachixNixStoreUrl, DeploySpec, createMachineDeploySpec;
import mcl.utils.tui : bold;
import mcl.utils.json : toJSON, fromJSON;
import mcl.utils.json : toJSON, fromJSON, tryDeserializeFromJsonFile;

import mcl.commands.ci_matrix : flakeAttr, params, Params, nixEvalJobs, SupportedSystem;

Expand Down Expand Up @@ -49,11 +49,9 @@ export void deploy_spec()
}
else
{
warningf(
"Reusing existing deploy spec at '%s':\n---\n%s\n---",
deploySpecFile.bold,
deploySpecFile.readText().parseJSON.fromJSON!DeploySpec
);
warningf("Reusing existing deploy spec at:\n'%s'", deploySpecFile.bold);

warningf("\n---\n%s\n---", deploySpecFile.tryDeserializeFromJsonFile!DeploySpec);
}

spawnProcessInline([
Expand Down

0 comments on commit b25f308

Please sign in to comment.