From 30f507338d5c4d3be9acc6e6f23e5461fc3a5d7b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 6 Nov 2024 16:31:23 -0600 Subject: [PATCH] omg. never did os.UserHomeDir() Signed-off-by: Jeff Carr --- control | 2 ++ main.go | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/control b/control index 6c48021..514d0cc 100644 --- a/control +++ b/control @@ -2,8 +2,10 @@ Source: go-deb Build-Depends: golang Package: go-deb Maintainer: Jeff Carr +Packager: Jeff Carr Architecture: amd64 Depends: +URL: https://go.wit.com/ Recommends: go-gui-toolkits Description: create distribution packages for golang repositories Hopefully, this can make compatible and correct source diff --git a/main.go b/main.go index 9831439..d5fe4e7 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,9 @@ func main() { basicWindow = makebasicWindow() - filepath := filepath.Join("/home/jcarr/go/src", argv.Repo) + // todo: add the go.work file logic here + homeDir, _ := os.UserHomeDir() + filepath := filepath.Join(homeDir, "go/src", argv.Repo) os.Chdir(filepath) // scan the repo