mroth / scmpuff

:1234: Numeric file shortcuts for common git commands
https://mroth.github.io/scmpuff/
MIT License
384 stars 22 forks source link

Native build errors in cobra #43

Closed kmatt closed 5 years ago

kmatt commented 5 years ago

Attempting to build on machine without Ruby:

$ script/build
# _/Users/kmatt/source/scmpuff
./main.go:40:38: cannot use inits.CommandInit() (type *"github.com/mroth/scmpuff/vendor/github.com/spf13/cobra".Command) as type *"github.com/spf13/cobra".Command in argument to puffCmd.AddCommand
./main.go:41:41: cannot use expand.CommandExpand() (type *"github.com/mroth/scmpuff/vendor/github.com/spf13/cobra".Command) as type *"github.com/spf13/cobra".Command in argument to puffCmd.AddCommand
./main.go:42:41: cannot use status.CommandStatus() (type *"github.com/mroth/scmpuff/vendor/github.com/spf13/cobra".Command) as type *"github.com/spf13/cobra".Command in argument to puffCmd.AddCommand
$ go version
go version go1.10.3 darwin/amd64

Is this an issue with scmpuff or spf13/cobra ?

kmatt commented 5 years ago

Running scripts/build from the source retrieved by go get solves the issue. Running from a git clone elsewhere is where the problem occurred.