ontio / ontology

Official Go implementation of the Ontology protocol. https://dev-docs.ont.io/#/
GNU Lesser General Public License v3.0
829 stars 290 forks source link

Import ontology-go-sdk package fail in ontology #1256

Closed mutobui closed 4 years ago

mutobui commented 4 years ago

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)

laizy commented 4 years ago

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 .

mutobui commented 4 years ago

problem solved