openshift / ansible-service-broker

Ansible Service Broker
Apache License 2.0
228 stars 84 forks source link

Fix up glide.yaml to flatten dependecies #100

Closed rthallisey closed 7 years ago

rthallisey commented 7 years ago

As part of make build we remove docker vendor dependency instead of having glide flatten it rm -rf ${GOPATH}/src/github.com/fusor/ansible-service-broker/vendor/github.com/docker/docker/vendor. We should get glide.yaml & glide.lock into good shape so we don't have to do this anymore and it avoid this coming up in the future.

jmrodri commented 7 years ago

I tried using glide --strip-vendor ... but hit another weird issue. I then gave up.

rthallisey commented 7 years ago

@jmrodri I think we should keep this open for at least one more patch. I wrote a TODO list for this somewhere, but I think I've lost it....

Here are some additions we need to complete this:

jmrodri commented 7 years ago

@rthallisey I made both the glide install -v change and removed the rm -rf. This causes a failure:

$ make install                                                     
go install -ldflags="-s -w" ./cmd/broker                                                                         
# github.com/fusor/ansible-service-broker/vendor/github.com/docker/distribution/context                          
vendor/github.com/docker/distribution/context/logger.go:104: undefined: logrus.StandardLogger                    
Makefile:8: recipe for target 'install' failed                                                                   
make: *** [install] Error 2                                                                                      

I guess this means we need to add that to our glide.yaml?

rthallisey commented 7 years ago

@jmrodri The logrus pkg should be in glide.yaml.

- package: github.com/Sirupsen/logrus
  version: v0.11.4

Maybe try clearing the glide cache and install the deps again? rm -rf ~/.glide and rm -rf $GOPATH/src/github.com/fusor/ansible-service-broker/vendor/.

rthallisey commented 7 years ago

I cleared my cache and I'm seeing the issue.

rthallisey commented 7 years ago

@jmrodri The issue is the glide.lock file is out of date. Maybe we shouldn't carry a glide.lock file? For now, I'll update it.