From e6be71a33caf7dba9d4060231bd34586aeb41fe2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Mar 2024 09:23:04 -0600 Subject: git clone deps --- readWorkFile.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'readWorkFile.go') diff --git a/readWorkFile.go b/readWorkFile.go index e11ad90..3383a82 100644 --- a/readWorkFile.go +++ b/readWorkFile.go @@ -3,6 +3,7 @@ package main import ( "bufio" "os" + "path/filepath" "strings" "go.wit.com/lib/gui/shell" @@ -15,8 +16,9 @@ func addDir(d string) { } } -func readControlFile() error { - file, err := os.Open("go.work") +func readControlFile(path string) error { + fullname := filepath.Join(path, "go.work") + file, err := os.Open(fullname) if err != nil { return err } -- cgit v1.2.3