I Use SSH not HTTPS
Error Respose
Solving failure: failed to list versions for https://github.com/XXXXX: fatal: could not read Username for 'https://github.com': terminal prompts disabled
: exit status 128

I have the same error.
dep:
version : v0.5.0
build date : 2018-08-16
git hash : 224a564
go version : go1.10.3
go compiler : gc
platform : darwin/amd64
features : ImportDuringSolve=false
I switched back to version v0.4.1 and everything is OK.
This solution worked for me
https://github.com/golang/dep/issues/1726#issuecomment-444018360
dep:
version : v0.5.0
build date : 2018-07-26
git hash : 224a564
go version : go1.10.3
go compiler : gc
platform : darwin/amd64
features : ImportDuringSolve=false
Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!
Most helpful comment
This solution worked for me
https://github.com/golang/dep/issues/1726#issuecomment-444018360