Skip to content
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

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

cdrage
Copy link
Member

@cdrage cdrage commented Sep 29, 2017

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:

▶ make bin                                                                                                                                                                                                                                                                        
go build -ldflags="-w -X github.com/kubernetes/kompose/cmd.GITCOMMIT=0e56b7d" -o kompose main.go                                                                                                                                                                                  
# github.com/kubernetes/kompose/vendor/github.com/docker/cli/cli/compose/schema                                                                                                                                                                                                   
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                                                                                                                                                                                                                                  
# github.com/kubernetes/kompose/vendor/github.com/docker/libcompose/config                                                                                                                                                                                                        
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                                                                                                                                                                                                                                                         

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 29, 2017
@cdrage cdrage changed the title Update vendoring to reflect logrus conflicts Update vendoring for logrus and gojsonschema changes Sep 29, 2017
glide.yaml Outdated
@@ -4,8 +4,16 @@ licence: Apache-2.0

import:

- package: github.com/sirupsen/logrus
version: master
Copy link
Member

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: git@github.com:/sirupsen/logrus
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surajnarwade
Copy link
Contributor

@cdrage , bit confused here but I am not able to see sirupsen/logrus in vendor directory (instead there Sirupsen/logrus)

@cdrage
Copy link
Member Author

cdrage commented Oct 4, 2017

@surajnarwade There's conflicts with docker/cli updating to using sirupsen/logrus instead of Sirupsen/logrus.

Yes, there is no folder for it, Glide handles it.

@surajnarwade
Copy link
Contributor

LGTM

@cdrage cdrage merged commit 57cad65 into kubernetes:master Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants