danielgtaylor / openapi-cli-generator

Generate a CLI from an OpenAPI 3 specification
MIT License
181 stars 49 forks source link

Build broken with undefined zerolog.LevelWidth #14

Closed pmundt closed 5 years ago

pmundt commented 5 years ago

With more recent versions of the zerolog package, LevelWidth has been removed, and so this no longer builds:

$ go build
# github.com/danielgtaylor/openapi-cli-generator/cli
../../../go/src/github.com/danielgtaylor/openapi-cli-generator/cli/log.go:60:6: undefined: zerolog.LevelWidth
../../../go/src/github.com/danielgtaylor/openapi-cli-generator/cli/log.go:61:18: undefined: zerolog.LevelWidth
../../../go/src/github.com/danielgtaylor/openapi-cli-generator/cli/log.go:64:21: undefined: zerolog.LevelWidth

More specifically, this was broken by the recent rewriting of the zerolog.ConsoleWriter interface.

naturallymitchell commented 5 years ago

@danielgtaylor do you have any ETA for this?

geekodour commented 5 years ago

@pmundt I think this can be fixed by using the version before that PR was introduced. by using go modules and locking the vendor directory. It will also prevent this from happening in the future with other dependencies. ?