Skip to content

Commit

Permalink
point to homebrew Spin data dir
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <[email protected]>
  • Loading branch information
kate-goldenring committed May 13, 2023
1 parent da73b0a commit dadd379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/plugins/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl PluginStore {

pub fn try_default() -> Result<Self> {
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");
Expand Down
2 changes: 1 addition & 1 deletion crates/templates/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl TemplateStore {

pub(crate) fn try_default() -> anyhow::Result<Self> {
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");
Expand Down

0 comments on commit dadd379

Please sign in to comment.