mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
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:
parent
50583bc93e
commit
a04951541a
5 changed files with 30 additions and 19 deletions
11
src/cli.rs
11
src/cli.rs
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue