tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.54k stars 455 forks source link

go-socket.io error loading dependencies #489

Closed thedarkphoton closed 8 years ago

thedarkphoton commented 8 years ago

Expected behavior

expect godep save ./... to update vendor folder

Actual behavior

godep error loading dependencies

godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io
godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io/message
godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io/parser
godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io/polling
godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io/transport
godep: dirty working tree (please commit changes): /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io/websocket
godep: error loading dependencies

Steps to reproduce behavior

checkout https://github.com/TheDarkPhoton/heroku_socket_chat cd to the folder godep save ./...

go get go-socket.io and websocket packages if needed

godep version output

godep v74 (linux/amd64/go1.6.2)

go version output

go version go1.6.2 linux/amd64

Contents of Godeps.json file

N/A

freeformz commented 8 years ago

Looks like /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io is dirty. if you do the following what is the output:

$ cd /home/dovydas/.gvm/pkgsets/go1.6.2/global/src/github.com/googollee/go-engine.io
$ git status
$ gi ls-files
thedarkphoton commented 8 years ago

I assume you meant to write git ls-files

I get a list of a bunch of files

.travis.yml
LICENSE
README.md
example/asset/index.html
example/asset/index.js
example/asset/style.css
example/main.go
ioutil.go
ioutil_test.go
message/message.go
parser/limit_reader.go
parser/limit_reader_test.go
parser/packet.go
parser/packet_test.go
parser/parser.go
parser/payload.go
parser/payload_test.go
polling/client.go
polling/polling_test.go
polling/server.go
polling/server_test.go
polling/try_locker.go
polling/try_locker_test.go
polling/writer.go
polling/writer_test.go
polling/xhr.go
server.go
server_conn.go
server_conn_test.go
server_test.go
sessions.go
sessions_test.go
transport/transport.go
websocket/client.go
websocket/server.go
websocket/websocket.go
websocket/websocket_test.go

If you're suggesting I should commit changes in that folder then I kind of tried that already. I don't really know "dirty" suppose to mean in this context.

thedarkphoton commented 8 years ago

Scratch that, I tried to commit these changes again and it works now, not sure what I was doing wrong last time.