@@ -537,22 +537,24 @@ func normalizeDebianProgramName(str string) string {
537
537
}
538
538
539
539
func shortHostName (gopkg string , allowUnknownHoster bool ) (host string , err error ) {
540
-
541
540
knownHosts := map [string ]string {
542
- "github.com" : "github" ,
543
- "code.google.com" : "googlecode" ,
541
+ // keep the list in alphabetical order
542
+ "bazil.org" : "bazil" ,
543
+ "bitbucket.org" : "bitbucket" ,
544
+ "blitiri.com.ar" : "blitiri" ,
544
545
"cloud.google.com" : "googlecloud" ,
545
- "gopkg.in" : "gopkg" ,
546
+ "code.google.com" : "googlecode" ,
547
+ "github.com" : "github" ,
548
+ "gitlab.com" : "gitlab" ,
549
+ "go4.org" : "go4" ,
546
550
"golang.org" : "golang" ,
547
551
"google.golang.org" : "google" ,
548
- "gitlab.com" : "gitlab" ,
549
- "bitbucket.org" : "bitbucket" ,
550
- "bazil.org" : "bazil" ,
551
- "blitiri.com.ar" : "blitiri" ,
552
- "pault.ag" : "pault" ,
552
+ "gopkg.in" : "gopkg" ,
553
553
"howett.net" : "howett" ,
554
- "go4.org" : "go4" ,
554
+ "k8s.io" : "k8s" ,
555
+ "pault.ag" : "pault" ,
555
556
"salsa.debian.org" : "debian" ,
557
+ "sigs.k8s.io" : "k8s-sigs" ,
556
558
}
557
559
parts := strings .Split (gopkg , "/" )
558
560
fqdn := parts [0 ]
0 commit comments