caarlos0 / starcharts

Plot your repository stars over time.

Home Page:https://starchart.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run locally

prabhakar267 opened this issue · comments

Installed 1.10.2 version for MacOS, ran go run main.go and the following error.

main.go:8:2: cannot find package "github.com/apex/httplog" in any of:
	/usr/local/go/src/github.com/apex/httplog (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/apex/httplog (from $GOPATH)
main.go:9:2: cannot find package "github.com/apex/log" in any of:
	/usr/local/go/src/github.com/apex/log (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/apex/log (from $GOPATH)
main.go:10:2: cannot find package "github.com/apex/log/handlers/text" in any of:
	/usr/local/go/src/github.com/apex/log/handlers/text (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/apex/log/handlers/text (from $GOPATH)
main.go:11:2: cannot find package "github.com/caarlos0/starcharts/config" in any of:
	/usr/local/go/src/github.com/caarlos0/starcharts/config (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/config (from $GOPATH)
main.go:12:2: cannot find package "github.com/caarlos0/starcharts/controller" in any of:
	/usr/local/go/src/github.com/caarlos0/starcharts/controller (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/controller (from $GOPATH)
main.go:13:2: cannot find package "github.com/caarlos0/starcharts/internal/cache" in any of:
	/usr/local/go/src/github.com/caarlos0/starcharts/internal/cache (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/caarlos0/starcharts/internal/cache (from $GOPATH)
main.go:14:2: cannot find package "github.com/gorilla/handlers" in any of:
	/usr/local/go/src/github.com/gorilla/handlers (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/gorilla/handlers (from $GOPATH)
main.go:15:2: cannot find package "github.com/gorilla/mux" in any of:
	/usr/local/go/src/github.com/gorilla/mux (from $GOROOT)
	/Users/prabhakar267/go/src/github.com/gorilla/mux (from $GOPATH)

did you run dep ensure?

No, I just cloned the project and ran that command
(I am pretty new to golang)

yeah, you need to install dep ( https://github.com/golang/dep ) and something like:

go get -d github.com/caarlos0/starcharts
cd $(go env GOPATH)/src/github.com/caarlos0/starcharts
dep ensure

good luck :)

GitHub
Go dependency management tool