-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update vendoring for logrus and gojsonschema changes #835
Conversation
5809e0c
to
e69e231
Compare
glide.yaml
Outdated
@@ -4,8 +4,16 @@ licence: Apache-2.0 | |||
|
|||
import: | |||
|
|||
- package: github.com/sirupsen/logrus | |||
version: master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to pin this to some specific version.
Some vendoring is blocking other PR's due to changes to logrus (Sirupsen vs sirupsen for lower-case) as well as a non-versioned gojsonschema in glide.yaml This updates glide.yaml to reflect the upper-case as well as lower-case versions of logrus as well as adds a versionized gojsonschema in order to get rid of the following error: ```sh ▶ make bin go build -ldflags="-w -X github.com/kubernetes/kompose/cmd.GITCOMMIT=0e56b7d" -o kompose main.go vendor/github.com/docker/cli/cli/compose/schema/schema.go:34: cannot use portsFormatChecker literal (type portsFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: portsFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool vendor/github.com/docker/cli/cli/compose/schema/schema.go:35: cannot use portsFormatChecker literal (type portsFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: portsFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool vendor/github.com/docker/cli/cli/compose/schema/schema.go:36: cannot use durationFormatChecker literal (type durationFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: durationFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool vendor/github.com/docker/libcompose/config/schema_helpers.go:60: cannot use environmentFormatChecker literal (type environmentFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: environmentFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool vendor/github.com/docker/libcompose/config/schema_helpers.go:61: cannot use portsFormatChecker literal (type portsFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: portsFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool vendor/github.com/docker/libcompose/config/schema_helpers.go:62: cannot use portsFormatChecker literal (type portsFormatChecker) as type gojsonschema.FormatChecker in argument to gojsonschema.FormatCheckers.Add: portsFormatChecker does not implement gojsonschema.FormatChecker (wrong type for IsFormat method) have IsFormat(string) bool want IsFormat(interface {}) bool ^CMakefile:29: recipe for target 'bin' failed make: *** [bin] Interrupt ```
- package: github.com/Sirupsen/logrus | ||
version: v0.11.5 | ||
repo: [email protected]:/sirupsen/logrus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there another way to resolve this other than vendoring this twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope 👎 sirupsen/logrus#570
@cdrage , bit confused here but I am not able to see |
@surajnarwade There's conflicts with docker/cli updating to using Yes, there is no folder for it, Glide handles it. |
LGTM |
Some vendoring is blocking other PR's due to changes to logrus (Sirupsen
vs sirupsen for lower-case) as well as a non-versioned gojsonschema in
glide.yaml
This updates glide.yaml to reflect the upper-case as well as lower-case
versions of logrus as well as adds a versionized gojsonschema in order
to get rid of the following error: