github.com/golang/gddo/gosrc.vcsCmds first fetches over the http scheme[0]. Can we change this to default to secure protocols first? (e.g. []string{"https", "ssh", "http", "git"}
0] vcsCmd.schemes list http first for both svn and git. Then consumers range over schemes, meaning http gets hit first. While it is probably that most services 3xx over to https, this may not be the case for smaller source hosting platforms.
github.com/golang/gddo/gosrc.vcsCmds
first fetches over thehttp
scheme[0]. Can we change this to default to secure protocols first? (e.g.[]string{"https", "ssh", "http", "git"}
0]
vcsCmd.schemes
list http first for bothsvn
andgit
. Then consumersrange
over schemes, meaning http gets hit first. While it is probably that most services3xx
over to https, this may not be the case for smaller source hosting platforms.