openshift / geard

geard is no longer maintained - see OpenShift 3 and Kubernetes
Other
405 stars 80 forks source link

Go panic when specifying local path to STI scripts #212

Closed mfojtik closed 10 years ago

mfojtik commented 10 years ago

[root@dev ~]# gear build https://github.com/mfojtik/sinatra-app-example openshift/ruby- 19-centos sinatra-app -s /data/src/github.com/openshift/ruby-19-centos/.sti/bin

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x5560d8]

goroutine 15 [running]:
runtime.panic(0x80eb00, 0xff6668)
    /usr/lib/golang/src/pkg/runtime/panic.c:266 +0xb6
github.com/openshift/geard/sti.downloadFile(0xc210082d20, 0xc21007f6c0, 0x28, 0x0, 0x0, ...)
    /data/src/github.com/openshift/geard/sti/util.go:127 +0x88
github.com/openshift/geard/sti.func·001(0xc210082d20, 0xc21007f6c0, 0x28)
    /data/src/github.com/openshift/geard/sti/build.go:367 +0x7f
created by github.com/openshift/geard/sti.requestHandler.downloadScripts
    /data/src/github.com/openshift/geard/sti/build.go:376 +0x1ed