Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Unable to install #21

Open
johntdyer opened this issue Apr 21, 2016 · 1 comment
Open

Unable to install #21

johntdyer opened this issue Apr 21, 2016 · 1 comment
Assignees

Comments

@johntdyer
Copy link

Appears to be some issue w/ spf13 when installing on my system

  • OSX 10.11.4

  • go version go1.6 darwin/amd64

    go get -d -v ./...
    echo errors github.com/stretchr/testify/assert testing  | xargs -n1 go get -d
    go build -o bin/consul-cli
    # github.com/spf13/cobra
    ../../spf13/cobra/bash_completions.go:373: flag.Annotations undefined (type *pflag.Flag has no field or method Annotations)
    ../../spf13/cobra/bash_completions.go:387: flag.Annotations undefined (type *pflag.Flag has no field or method Annotations)
    ../../spf13/cobra/bash_completions.go:443: flag.Annotations undefined (type *pflag.Flag has no field or method Annotations)
    ../../spf13/cobra/bash_completions.go:571: flags.SetAnnotation undefined (type *pflag.FlagSet has no field or method SetAnnotation)
    ../../spf13/cobra/bash_completions.go:595: flags.SetAnnotation undefined (type *pflag.FlagSet has no field or method SetAnnotation)
    ../../spf13/cobra/bash_completions.go:601: flags.SetAnnotation undefined (type *pflag.FlagSet has no field or method SetAnnotation)
    ../../spf13/cobra/command.go:117: undefined: pflag.NormalizedName
    ../../spf13/cobra/command.go:182: undefined: pflag.NormalizedName
    ../../spf13/cobra/command.go:183: c.Flags().SetNormalizeFunc undefined (type *pflag.FlagSet has no field or method SetNormalizeFunc)
    ../../spf13/cobra/command.go:1012: undefined: pflag.NormalizedName
    ../../spf13/cobra/command.go:183: too many errors
    make: *** [build] Error 2
@johntdyer
Copy link
Author

I actually got this working by updating spf13

go get -u github.com/spf13/cobra

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

No branches or pull requests

3 participants