Closed pearkes closed 11 years ago
Right now, if you manually change the path in your ~/.getconfig to something that doesn't exist, we just do this:
~/.getconfig
panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x20 pc=0x3c0d] goroutine 1 [running]: main.checkPath(0xf840064e87, 0x28) /Users/jack/code/golang/src/github.com/pearkes/get/configuration.go:116 +0x107 main.sequence_checks(0xf840064e87, 0x28, 0xf840066e26, 0x16, 0xf840066eaa, ...) /Users/jack/code/golang/src/github.com/pearkes/get/sequence.go:102 +0x118 main.main() /Users/jack/code/golang/src/github.com/pearkes/get/main.go:48 +0x3a6 goroutine 2 [syscall]: created by runtime.main /usr/local/go/src/pkg/runtime/proc.c:221
Should just refactor how we do checkPath, as that logic is all screwy.
checkPath
Fixed in #11
Right now, if you manually change the path in your
~/.getconfig
to something that doesn't exist, we just do this:Should just refactor how we do
checkPath
, as that logic is all screwy.