From fc52c3fa67953c698c1ca748a0d9f49f3a5369a0 Mon Sep 17 00:00:00 2001 From: Manuel Mauro Date: Thu, 17 Oct 2024 17:45:47 +0200 Subject: [PATCH] feat: do not fail linting when running in the wrong folder --- zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs b/zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs index 45a8c499a7e1..a011ca28c285 100644 --- a/zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs +++ b/zkstack_cli/crates/zkstack/src/commands/dev/commands/lint.rs @@ -152,7 +152,8 @@ fn lint_contracts(shell: &Shell, ecosystem: &EcosystemConfig, check: bool) -> an fn lint_autocompletion_files(_shell: &Shell, check: bool) -> anyhow::Result<()> { let completion_folder = Path::new("./zkstack_cli/crates/zkstack/completion/"); if !completion_folder.exists() { - bail!("Please run this command from the project's root folder") + logger::info("WARNING: Please run this command from the project's root folder"); + return Ok(()); } // Array of supported shells