From fc96de01a4991c049eeecb183374f2aecc3b9acf Mon Sep 17 00:00:00 2001 From: Brian Ketelsen Date: Tue, 21 Mar 2023 11:15:54 -0400 Subject: [PATCH] fix: add symlink to fleek yaml file on clone --- core/config.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/config.go b/core/config.go index 9530ec4a..f798a6e1 100644 --- a/core/config.go +++ b/core/config.go @@ -241,7 +241,17 @@ func Clone(repo string) error { clone.Stdout = os.Stdout clone.Env = os.Environ() - return clone.Run() + err = clone.Run() + if err != nil { + return err + } + home, err := os.UserHomeDir() + if err != nil { + return err + } + yamlPath := filepath.Join(location, ".fleek.yml") + csym := filepath.Join(home, ".fleek.yml") + return os.Symlink(yamlPath, csym) }