From 8a60d353647ac7ab0313ff704f60d5fb9c7dd9f1 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Fri, 12 May 2023 14:13:20 -0700 Subject: [PATCH] Move to share 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 01106c8f8a..53a41877b3 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("share/spin/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 783055b2c0..9c84141398 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("share/spin/templates"); if templates_dir.exists() && templates_dir.is_dir() { println!("Path to brew templates exists");