From dadd379fcff07208412633060af412278616c49d Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Fri, 12 May 2023 17:15:46 -0700 Subject: [PATCH] point to homebrew Spin data dir Signed-off-by: Kate Goldenring --- crates/plugins/src/store.rs | 2 +- crates/templates/src/store.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/plugins/src/store.rs b/crates/plugins/src/store.rs index 01106c8f8..66c4061b1 100644 --- a/crates/plugins/src/store.rs +++ b/crates/plugins/src/store.rs @@ -25,7 +25,7 @@ impl PluginStore { pub fn try_default() -> Result { if let Ok(brew_prefix) = std::env::var("HOMEBREW_PREFIX") { - let plugins_dir = Path::new(&brew_prefix).join("var/spin/plugins"); + let plugins_dir = Path::new(&brew_prefix).join("var").join("spin").join("plugins"); if plugins_dir.exists() && plugins_dir.is_dir() { println!("Path to brew plugins exists"); diff --git a/crates/templates/src/store.rs b/crates/templates/src/store.rs index 783055b2c..5a68baefb 100644 --- a/crates/templates/src/store.rs +++ b/crates/templates/src/store.rs @@ -21,7 +21,7 @@ impl TemplateStore { pub(crate) fn try_default() -> anyhow::Result { if let Ok(brew_prefix) = std::env::var("HOMEBREW_PREFIX") { - let templates_dir = Path::new(&brew_prefix).join("var/spin/templates"); + let templates_dir = Path::new(&brew_prefix).join("var").join("spin").join("templates"); if templates_dir.exists() && templates_dir.is_dir() { println!("Path to brew templates exists");