Closed mutobui closed 4 years ago
ontology --version
Latest
Linux
I trying to import package ontology-go-sdk in my test project
Import successful
../github.com/ontio/ontology/cmd/utils/flags.go:507:14: flag.GetName undefined (type cli.Flag has no field or method GetName)
do you use go module? we use package urfave/cli v1.22.1, GetName is defined at: https://github.com/urfave/cli/blob/v1.22.1/flag.go#L74 you may misused an newer version .
problem solved
What version of ontology are you using (
ontology --version
)?Latest
What operating system are you using (such as macOS, Linux and Windows)?
Linux
What did you do?
I trying to import package ontology-go-sdk in my test project
What did you expect to see?
Import successful
What did you see instead?
github.com/ontio/ontology/cmd/utils
../github.com/ontio/ontology/cmd/utils/flags.go:507:14: flag.GetName undefined (type cli.Flag has no field or method GetName)