Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

go get failing due to kingping #569

Closed
xibz opened this issue Dec 19, 2018 · 2 comments
Closed

go get failing due to kingping #569

xibz opened this issue Dec 19, 2018 · 2 comments

Comments

@xibz
Copy link

xibz commented Dec 19, 2018

$ go get github.com/alecthomas/gometalinter
# github.com/alecthomas/gometalinter
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:36:94: cannot use loadConfig (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext)
error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("config", "Load JSON configuration from file.").Envar("GOMETALINTER_CONFIG").Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:38:100: cannot use disableAction (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("disable", "Disable previously enabled linters.").PlaceHolder("LINTER").Short('D').Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:39:99: cannot use enableAction (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("enable", "Enable previously disabled linters.").PlaceHolder("LINTER").Short('E').Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:40:83: cannot use cliLinterOverrides (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("linter", "Define a linter.").PlaceHolder("NAME:COMMAND:PATTERN").Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:43:56: cannot use disableAllAction (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("disable-all", "Disable all linters.").Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:44:54: cannot use enableAllAction (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.cmdMixin.flagGroup.Flag("enable-all", "Enable all linters.").Action
../go/pkg/mod/github.com/alecthomas/gometalinter@v2.0.12+incompatible/main.go:200:12: cannot use loadDefaultConfig (type func(*kingpin.Application, *kingpin.ParseElement, *kingpin.ParseContext) error) as type kingpin.Action in argument to app.Action

Seems like this is an repetitive issue... Would be good to fix the root problem or have some sort of testing for this.

@alecthomas
Copy link
Owner

All dependencies of gometalinter are vendored, and they compile and test on each commit. This is a local issue in your environment. Maybe you have vendoring disabled somehow?

@xibz
Copy link
Author

xibz commented Dec 19, 2018

Ah, probably due to go modules or something. That’s the only thing that comes to mind. Thanks!

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

No branches or pull requests

2 participants