usdevs / cinnabot

MIT License
2 stars 5 forks source link

Use absolute imports instead of relative #14

Closed hongshaoyang closed 5 years ago

hongshaoyang commented 5 years ago

Fix relative imports that do not work. Assuming cloning cinnabot to ~/go/src/github.com/usdevs/cinnabot, basic.go will complain:

cannot find package "cinnabot/model" in any of:
    /usr/local/go/src/cinnabot/model (from $GOROOT)
    /Users/shaoyang/go/src/cinnabot/model (from $GOPATH)go

Solution: Use absolute imports (import "github.com/usdevs/cinnabot" etc).

SwampertX commented 5 years ago

fixing this first, since it affects the installation in a new machine.