Skip to content

Commit 981fe41

Browse files
supertassuottok
authored andcommitted
Support Codeberg as a host
1 parent cdc1ff4 commit 981fe41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ func (u *upstream) tarballUrl() (string, error) {
161161
case "git.sr.ht":
162162
return fmt.Sprintf("%s/archive/%s.tar.%s",
163163
repo, u.tag, u.compression), nil
164+
case "codeberg.org":
165+
return fmt.Sprintf("%s/archive/%s.tar.%s",
166+
repo, u.tag, u.compression), nil
164167
default:
165168
return "", errUnsupportedHoster
166169
}
@@ -579,6 +582,7 @@ func shortHostName(gopkg string, allowUnknownHoster bool) (host string, err erro
579582
"blitiri.com.ar": "blitiri",
580583
"cloud.google.com": "googlecloud",
581584
"code.google.com": "googlecode",
585+
"codeberg.org": "codeberg",
582586
"filippo.io": "filippo",
583587
"fyne.io": "fyne",
584588
"git.sr.ht": "sourcehut",

0 commit comments

Comments
 (0)