Closed alxmsl closed 6 years ago
I get the same - how do you fix this? Is there a missing dependency?
@alxmsl @urban-1
By default dep
uses not latest master
, but latest version tag.
That's why dep
downloads for you v0.0.1
tag of this repo instead of master
. And in that version such bug is present (conversting struct
to int
value).
But in latest master
this is fixed.
Just use correct [[constraint]]
for github.com/mkideal/cli
project in your Gopkg.toml
:
[[constraint]]
name = "github.com/mkideal/cli"
branch = "master"
Or [[override]]
if this is a transitive dependency in your project:
[[override]]
name = "github.com/mkideal/cli"
branch = "master"
Doesn't this worth upping the version to v0.0.2
?
(I moved to another lib in order to continue with my development :( )
Please take a look at #46.
v0.0.2
released totday. I'm so sorry! v0.0.2
is late
Closing it now and feel free to reopen if you have any more questions.
main.go
import ( "github.com/mkideal/cli" )
func main() { cli.HelpCommand("aaa") }
$: go build
github.com/alxmsl/temp/vendor/github.com/mkideal/cli
vendor/github.com/mkideal/cli/flag.go:66: cannot convert v (type expr.Value) to type int64 vendor/github.com/mkideal/cli/flag.go:68: cannot convert v (type expr.Value) to type float64