don't check canonicalized paths while sandboxed

Because the configured paths won't exist in the sandbox, so
canonicalization would fail.
This commit is contained in:
Charles Hall 2025-03-21 15:22:14 -07:00
parent 50583bc93e
commit a04951541a
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 30 additions and 19 deletions

View file

@ -42,6 +42,13 @@ pub(crate) struct CheckConfigArgs {
#[clap(flatten)]
observability: ObservabilityArgs,
/// Supply this option if the check is being performed in a sandbox.
///
/// This causes certain checks that can only be run against the actual
/// installation to be skipped.
#[arg(long, short)]
sandboxed: bool,
}
/// Wrapper for the `--config` arg.
@ -96,9 +103,7 @@ impl Args {
match self.command {
Command::Serve(args) => serve::run(args).await?,
Command::CheckConfig(args) => {
check_config::run(args.config).await?;
}
Command::CheckConfig(args) => check_config::run(args).await?,
}
Ok(())
}