Closed netrounds-joakim closed 8 years ago
Ugh ok... Turns out running Docker in windows (or something other reason doing this in my Docker instance) breaks the cat
and more
output....
The same file after install vim and opening it in that:
{
"ImportPath": "app",
"GoVersion": "go1.6",
"GodepVersion": "v74",
"Deps": [
{
"ImportPath": "github.com/emicklei/go-restful",
"Comment": "v1.2-79-g89ef8af",
"Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22"
},
{
"ImportPath": "github.com/emicklei/go-restful/log",
"Comment": "v1.2-79-g89ef8af",
"Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22"
},
{
"ImportPath": "github.com/emicklei/go-restful/swagger",
"Comment": "v1.2-79-g89ef8af",
"Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22"
},
{
"ImportPath": "labix.org/v2/mgo/bson",
"Comment": "287",
"Rev": "gustavo@niemeyer.net-20140501184651-975yyw9ipld92pji"
}
]
}
Expected behavior
Valid JSON output when running
godep save
Actual behavior
Steps to reproduce behavior
This is the first time I ever use
godep
. I'm learning Go and trying to get a nice dependency management in my Docker image.My dockerfile (work in progress):
Trying to understand how stuff works I am running this in interactive mode:
Resulting in the invalid JSON.
My imports
godep version
outputgodep v74 (linux/amd64/go1.6.2)
go version
outputgo version go1.6.2 linux/amd64
Contents of Godeps.json file