pwaller / docker-show-context

Show where time is wasted during the context upload of `docker build`
MIT License
338 stars 16 forks source link

Add go.mod for vgo and remove vendor directory #6

Closed pwaller closed 6 years ago

pwaller commented 6 years ago

That's all I've done; it seems to work. Please take a look and let me know if it doesn't work.

pwaller commented 6 years ago

I note that some of the dependencies seem to be old, but that doesn't currently seem to be a problem in terms of the program continuing to work.

pwaller commented 6 years ago

Hm, my instruction doesn't quite work. You need to clone the repository to somewhere, and then run vgo install. That works for me in two completely different environments, so I'm fairly happy with the solution. Hopefully the next release of Go will come with some built in support for this.

pwaller commented 6 years ago

Due to this bug in vgo https://github.com/golang/go/issues/25917, it's not currently possible to depend on a more recent version of docker. Hopefully that gets fixed.

pwaller commented 6 years ago

Hm, the docker situation is confusing, because the moby respository is no longer being tagged. Though the docker/docker-ce repository is being tagged.

So for now, I'll pin to a sha pointing to today. That seems to work well.