Skip to content

Commit

Permalink
feat(cli): remove 'graphviz' check from compas check-env
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Jun 1, 2023
1 parent d8a5ebb commit 91cf879
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions packages/cli/src/compas/commands/check-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ Versions:
isEnvLocalNotIgnored(),
isDotCacheNotIgnored(),
isDockerInstalled(),
isGraphvizInstalled(),
])
).filter((it) => it.failed);

Expand Down Expand Up @@ -166,26 +165,6 @@ async function areOtherCompasVersionsInstalled(compasVersion) {
};
}

/**
* Graphviz is necessary for `compas visualise
*
* @returns {Promise<{ failed: boolean, message?: string }>}
*/
async function isGraphvizInstalled() {
try {
await exec("dot -V");
return {
failed: false,
};
} catch {
return {
failed: true,
message: `Could not locate a local 'dot' executable. This is necessary for the 'compas visualise' commands.
This can be installed via the 'graphviz' package via your systems package manager.`,
};
}
}

/**
* Docker is necessary for `compas docker` usage
*
Expand Down

0 comments on commit 91cf879

Please sign in to comment.