mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +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
|
|
@ -1,11 +1,12 @@
|
|||
use tracing::info;
|
||||
|
||||
use crate::{cli::ConfigArg, config, error};
|
||||
use crate::{cli::CheckConfigArgs, config, error};
|
||||
|
||||
pub(crate) async fn run(
|
||||
args: ConfigArg,
|
||||
args: CheckConfigArgs,
|
||||
) -> Result<(), error::CheckConfigCommand> {
|
||||
let _config = config::load(args.config.as_ref()).await?;
|
||||
let _config =
|
||||
config::load(args.config.config.as_ref(), args.sandboxed).await?;
|
||||
info!("Configuration looks good");
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue