davecheney / httpstat

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

Package exists but is not a directory #120

Closed wayneashleyberry closed 7 years ago

wayneashleyberry commented 7 years ago

I'm getting the following error trying to install this package

go get -u github.com/davecheney/httpstat
package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory
package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

Tried cleaning my $GOPATH and didn't make a difference.

sudo rm -r $GOPATH
mkdir $GOPATH

System Details

go version go1.8.1 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/wayne/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8s/j9vt85xs4ps80919tlwsxdk00000gn/T/go-build266113172=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8.1 darwin/amd64
GOROOT/bin/go tool compile -V: compile version go1.8.1 X:framepointer
uname -v: Darwin Kernel Version 16.5.0: Fri Mar  3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64
ProductName:    Mac OS X
ProductVersion: 10.12.4
BuildVersion:   16E195
lldb --version: lldb-370.0.42
  Swift-3.1
davecheney commented 7 years ago

Try deleting $GOPATH/src/github.com/davecheney/httpstat and trying again.

On Wed, May 10, 2017 at 8:56 PM, Wayne Ashley Berry < notifications@github.com> wrote:

I'm getting the following error trying to install this package

go get -u github.com/davecheney/httpstat package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

Tried cleaning my $GOPATH and didn't make a difference.

sudo rm -r $GOPATH mkdir $GOPATH

System Details

go version go1.8.1 darwin/amd64 GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/wayne/go" GORACE="" GOROOT="/usr/local/Cellar/go/1.8.1/libexec" GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8s/j9vt85xs4ps80919tlwsxdk00000gn/T/go-build266113172=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" CGO_ENABLED="1" PKG_CONFIG="pkg-config" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" GOROOT/bin/go version: go version go1.8.1 darwin/amd64 GOROOT/bin/go tool compile -V: compile version go1.8.1 X:framepointer uname -v: Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 ProductName: Mac OS X ProductVersion: 10.12.4 BuildVersion: 16E195 lldb --version: lldb-370.0.42 Swift-3.1

— 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/120, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAcAxxBRTMsksbzlwfLJcDU1iEC4Yqjks5r4ZfjgaJpZM4NWf4t .

davecb commented 7 years ago

It looks odd, but builds fine.

simplycycling commented 7 years ago

Same issue when I try to do a go get, and deleting $GOPATH/src/github.com/davecheney/httpstat and repeating did not make a difference. I had to do a go build from $GOPATH/src/github.com/davecheney/httpstat.

cthulhu commented 7 years ago

Same here, with pretty much same system details.

go get -u github.com/davecheney/httpstat

fetches the code but build fails weirdly:

package github.com/davecheney/httpstat/vendor/github.com/fatih/color: ~/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory
package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: ~/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory
wayneashleyberry commented 7 years ago

I'm still getting this error :/

~
❯ go version
go version go1.8.3 darwin/amd64

~
❯ echo $GOPATH
/Users/wayne/go

~
❯ sudo rm -r $GOPATH/

~
❯ ls $GOPATH
ls: /Users/wayne/go: No such file or directory

~
❯ go get -u github.com/davecheney/httpstat
package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory
package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

~ 2m 48s
❯
davecheney commented 7 years ago

This looks like a bug with the -u flag. I'll see about raising a bug upstream.

On 2 Jul 2017, at 18:51, Wayne Ashley Berry notifications@github.com wrote:

I'm still getting this error :/

~ ❯ go version go version go1.8.3 darwin/amd64

~ ❯ echo $GOPATH /Users/wayne/go

~ ❯ sudo rm -r $GOPATH/

~ ❯ ls $GOPATH ls: /Users/wayne/go: No such file or directory

~ ❯ go get -u github.com/davecheney/httpstat package github.com/davecheney/httpstat/vendor/github.com/fatih/color: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/github.com/fatih/color/.git exists but is not a directory package github.com/davecheney/httpstat/vendor/golang.org/x/net/http2: /Users/wayne/go/src/github.com/davecheney/httpstat/vendor/golang.org/x/net/.git exists but is not a directory

~ 2m 48s ❯ — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

pedromg commented 6 years ago

Just tried here, also confirm the apparent -u flag issue:

notes: