Install gouml with error
mi81ma opened this issue · 4 comments
I am trying to install gouml, but got this error.
go get -u github.com/kazukousen/gouml/cmd/gouml
# github.com/kazukousen/gouml/cmd/gouml
../../../go/src/github.com/kazukousen/gouml/cmd/gouml/main.go:37:15: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
Same issue for me on latest macos :
go get -u github.com/kazukousen/gouml/cmd/gouml
# github.com/kazukousen/gouml/cmd/gouml
../go/src/github.com/kazukousen/gouml/cmd/gouml/main.go:37:15: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
go version
go version go1.13 darwin/amd64
Hi nbossard,
We can get a PlantUML code by using "GoPlantUML".
If you want PlantUML hurry, please try jfeliu007/goplantuml.
Hi,
When PR #60 is accepted you will be able to install gouml. For now, you can add a pointer in cmd/gouml/main.go, line 37, from []cli.Command
to []*cli.Command
, it will work flawlessly
Same issue has been happened Go 1.13.0, which is managed with goenv 2.0.0beta11, on my macOS 11.4.
However, self building can avoid this issue.
git clone https://github.com/kazukousen/gouml.git
cd gouml/cmd/gouml
go build -o /usr/local/bin/gouml main.go
gouml --version # now you can use this command!
I guess this issue is caused by version update of urfave/cli.
Changed
Occurrences of []Command have been changed to []*Command
ref: https://github.com/urfave/cli/releases/tag/v2.0.0
Or, this issue might have been happened because of goenv.
I'm not sure, but self building can avoid that.