omg. never did os.UserHomeDir()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
98e64560df
commit
30f507338d
2
control
2
control
|
@ -2,8 +2,10 @@ Source: go-deb
|
||||||
Build-Depends: golang
|
Build-Depends: golang
|
||||||
Package: go-deb
|
Package: go-deb
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
|
Packager: Jeff Carr <jcarr@wit.com>
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends:
|
Depends:
|
||||||
|
URL: https://go.wit.com/
|
||||||
Recommends: go-gui-toolkits
|
Recommends: go-gui-toolkits
|
||||||
Description: create distribution packages for golang repositories
|
Description: create distribution packages for golang repositories
|
||||||
Hopefully, this can make compatible and correct source
|
Hopefully, this can make compatible and correct source
|
||||||
|
|
4
main.go
4
main.go
|
@ -39,7 +39,9 @@ func main() {
|
||||||
|
|
||||||
basicWindow = makebasicWindow()
|
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)
|
os.Chdir(filepath)
|
||||||
|
|
||||||
// scan the repo
|
// scan the repo
|
||||||
|
|
Loading…
Reference in New Issue