Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install gouml with error #57

Open
mi81ma opened this issue Feb 17, 2020 · 4 comments
Open

Install gouml with error #57

mi81ma opened this issue Feb 17, 2020 · 4 comments

Comments

@mi81ma
Copy link

mi81ma commented Feb 17, 2020

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
@nbossard
Copy link

nbossard commented Feb 18, 2020

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

@mi81ma
Copy link
Author

mi81ma commented Feb 21, 2020

Hi nbossard,
We can get a PlantUML code by using "GoPlantUML".
If you want PlantUML hurry, please try jfeliu007/goplantuml.

@PierreLeGuen
Copy link

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

@task4233
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants