Skip to content

Commit 3995815

Browse files
zhsjanthonyfok
authored andcommitted
Add {sigs,}k8s.io to known hosts
Also sort the list in alphabetical order
1 parent 8c202c5 commit 3995815

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

make.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -537,22 +537,24 @@ func normalizeDebianProgramName(str string) string {
537537
}
538538

539539
func shortHostName(gopkg string, allowUnknownHoster bool) (host string, err error) {
540-
541540
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",
544545
"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",
546550
"golang.org": "golang",
547551
"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",
553553
"howett.net": "howett",
554-
"go4.org": "go4",
554+
"k8s.io": "k8s",
555+
"pault.ag": "pault",
555556
"salsa.debian.org": "debian",
557+
"sigs.k8s.io": "k8s-sigs",
556558
}
557559
parts := strings.Split(gopkg, "/")
558560
fqdn := parts[0]

0 commit comments

Comments
 (0)