Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 64b03cf

Browse files
authored
Merge pull request #34 from KusionStack/cdn-address
chore: fix unavailbale cdn address
2 parents fae16b1 + 893c38b commit 64b03cf

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ build/
33
coverage.out
44
tmp/
55
__debug_bin
6-
.vscode/
6+
.vscode/
7+
.idea/

pkg/sources/cdn/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ var ErrUnsupportedOsArch = fmt.Errorf("unsupported os/arch: %s/%s", runtime.GOOS
99

1010
func getArchiveDownloadURL(ver string) (string, error) {
1111
archiveDownloadURLMap := map[string]string{
12-
"linux-amd64": "https://gh.api.99988866.xyz/https://github.com/KusionStack/kusion/releases/download/%s/kusion-linux.tgz",
13-
"darwin-amd64": "https://gh.api.99988866.xyz/https://github.com/KusionStack/kusion/releases/download/%s/kusion-darwin.tgz",
14-
"darwin-arm64": "https://gh.api.99988866.xyz/https://github.com/KusionStack/kusion/releases/download/%s/kusion-darwin-arm64.tgz",
15-
"windows-amd64": "https://gh.api.99988866.xyz/https://github.com/KusionStack/kusion/releases/download/%s/kusion-windows.tgz",
12+
"linux-amd64": "https://ghproxy.com/https://github.com/KusionStack/kusion/releases/download/%s/kusion-linux.tgz",
13+
"darwin-amd64": "https://ghproxy.com/https://github.com/KusionStack/kusion/releases/download/%s/kusion-darwin.tgz",
14+
"darwin-arm64": "https://ghproxy.com/https://github.com/KusionStack/kusion/releases/download/%s/kusion-darwin-arm64.tgz",
15+
"windows-amd64": "https://ghproxy.com/https://github.com/KusionStack/kusion/releases/download/%s/kusion-windows.tgz",
1616
}
1717

1818
if urlPattern, ok := archiveDownloadURLMap[getOsArchKey(runtime.GOOS, runtime.GOARCH)]; ok {

0 commit comments

Comments
 (0)