gotasty / tastypl

Track P/L, portfolio performance, net credit after rolls, for tastytraders
GNU General Public License v3.0
65 stars 21 forks source link

The run fails with missing deps on OSX #1

Open aperepel opened 6 years ago

aperepel commented 6 years ago

Go runtime installed via Homebrew.

go version
go version go1.10.2 darwin/amd64

Session:

go run tastypl.go -input ../tastyworks_transactions_xxx.csv -printpl -positions
tastypl.go:28:2: cannot find package "github.com/golang/glog" in any of:
    /usr/local/Cellar/go/1.10.2/libexec/src/github.com/golang/glog (from $GOROOT)
    /Users/agrande/go/src/github.com/golang/glog (from $GOPATH)
tastypl.go:29:2: cannot find package "github.com/shopspring/decimal" in any of:
    /usr/local/Cellar/go/1.10.2/libexec/src/github.com/shopspring/decimal (from $GOROOT)
    /Users/agrande/go/src/github.com/shopspring/decimal (from $GOPATH)
tastypl.go:30:2: cannot find package "github.com/wcharczuk/go-chart" in any of:
    /usr/local/Cellar/go/1.10.2/libexec/src/github.com/wcharczuk/go-chart (from $GOROOT)
    /Users/agrande/go/src/github.com/wcharczuk/go-chart (from $GOPATH)
tastypl.go:31:2: cannot find package "github.com/wcharczuk/go-chart/util" in any of:
    /usr/local/Cellar/go/1.10.2/libexec/src/github.com/wcharczuk/go-chart/util (from $GOROOT)
    /Users/agrande/go/src/github.com/wcharczuk/go-chart/util (from $GOPATH)

Had to manually install additional modules:

go get github.com/golang/glog
go get github.com/shopspring/decimal
github.com/wcharczuk/go-chart