-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot get package #556
Comments
also happening on Windows |
root cause: there is a breaking change in https://github.com/urfave/cli (v1 -> v2) that use pointer receiver for StringFlag that cause this compiler error, reverting back to urfave/cli v1.22.1 may solve the issue, I'm wondering how golang manage dependencies between libs |
I have figured it out, just run |
There is an issue with |
also happening on Mac OS go version go1.13.4 darwin/amd64 |
this issue already fixed? |
@feildrixliemdra This is a temp solution because we prefer to use |
it solved my problem,thks |
I have an error when get package on Macos: go get -u github.com/swaggo/swag/cmd/swag
github.com/swaggo/swag/cmd/swag
../github.com/swaggo/swag/cmd/swag/main.go:24:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:29:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:34:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:39:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:44:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:48:14: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:52:16: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
../github.com/swaggo/swag/cmd/swag/main.go:83:15: cannot use []cli.Command literal (type []cli.Command) as type []*cli.Command in assignment
Please help me how to fix it. Thanks
The text was updated successfully, but these errors were encountered: