From 05235d962730ca103c1422432497bb2e9bb264f1 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 2 Aug 2025 20:18:00 +0200 Subject: [PATCH] fixed incorrect relative path resolution in setup --- warpgate/src/commands/setup.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/warpgate/src/commands/setup.rs b/warpgate/src/commands/setup.rs index ca12277e..2df362cc 100644 --- a/warpgate/src/commands/setup.rs +++ b/warpgate/src/commands/setup.rs @@ -110,8 +110,9 @@ pub(crate) async fn command(cli: &crate::Cli) -> Result<()> { .interact_text()? } }; + + let data_path = config_dir.join(PathBuf::from(&data_path)).canonicalize()?; create_dir_all(&data_path)?; - let data_path = PathBuf::from(&data_path).canonicalize()?; let db_path = data_path.join("db"); create_dir_all(&db_path)?;