davecheney / httpstat

It's like curl -v, with colours.
MIT License
6.95k stars 382 forks source link

go get is failing #121

Closed aitva closed 6 years ago

aitva commented 6 years ago

I am trying to build httpstat with go get -v -u github.com/davecheney/httpstat and it is failing. I am using go version go1.9 linux/amd64:

$ go get -v -u github.com/davecheney/httpstat
github.com/davecheney/httpstat (download)
github.com/davecheney/httpstat/vendor/github.com/fatih/color (download)
package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /home/aitva/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory
github.com/davecheney/httpstat/vendor/golang.org/x/net (download)
package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /home/aitva/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

On the upside, if I run go install github.com/davecheney/httpstat the build works properly! The vendored folders are cloned and go get is right about .git being a file:

~/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color$ ls -la
total 72
drwxrwxr-x 3 aitva aitva  4096 sept. 20 11:00 .
drwxrwxr-x 3 aitva aitva  4096 sept. 20 11:00 ..
-rw-rw-r-- 1 aitva aitva 18220 sept. 20 11:00 color.go
-rw-rw-r-- 1 aitva aitva  8491 sept. 20 11:00 color_test.go
-rw-rw-r-- 1 aitva aitva  4397 sept. 20 11:00 doc.go
-rw-rw-r-- 1 aitva aitva    63 sept. 20 11:00 .git
-rw-rw-r-- 1 aitva aitva  1079 sept. 20 11:00 LICENSE.md
-rw-rw-r-- 1 aitva aitva  4691 sept. 20 11:00 README.md
-rw-rw-r-- 1 aitva aitva    35 sept. 20 11:00 .travis.yml
drwxrwxr-x 4 aitva aitva  4096 sept. 20 11:00 vendor
davecheney commented 6 years ago

I think this is a bug introduced in Go 1.8 or 1.9. I have not had time to trace it down.

If someone wants to convert this project to use dep, and check in vendor/ that will resolve the problem once and for all.

On Wed, Sep 20, 2017 at 7:12 PM, Louis Arod notifications@github.com wrote:

I am trying to build httpstat with go get -v -u github.com/davecheney/httpstat and it is failing. I am using go version go1.9 linux/amd64:

$ go get -v -u github.com/davecheney/httpstatgithub.com/davecheney/httpstat (download)github.com/davecheney/httpstat/vendor/github.com/fatih/color (download) package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /home/aitva/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directorygithub.com/davecheney/httpstat/vendor/golang.org/x/net (download) package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /home/aitva/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

On the upside, if I run go install github.com/davecheney/httpstat the build works properly! The vendored folders are cloned and go get is right about .git being a file:

~/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color$ ls -la total 72 drwxrwxr-x 3 aitva aitva 4096 sept. 20 11:00 . drwxrwxr-x 3 aitva aitva 4096 sept. 20 11:00 .. -rw-rw-r-- 1 aitva aitva 18220 sept. 20 11:00 color.go -rw-rw-r-- 1 aitva aitva 8491 sept. 20 11:00 color_test.go -rw-rw-r-- 1 aitva aitva 4397 sept. 20 11:00 doc.go -rw-rw-r-- 1 aitva aitva 63 sept. 20 11:00 .git -rw-rw-r-- 1 aitva aitva 1079 sept. 20 11:00 LICENSE.md -rw-rw-r-- 1 aitva aitva 4691 sept. 20 11:00 README.md -rw-rw-r-- 1 aitva aitva 35 sept. 20 11:00 .travis.yml drwxrwxr-x 4 aitva aitva 4096 sept. 20 11:00 vendor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davecheney/httpstat/issues/121, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAcA-28FzokpEafmZhs9ThNe1pcLBbGks5skNbhgaJpZM4PdkXe .