Change download url for v2

While at it, also updating CI flow to reflect new path.
This commit is contained in:
Cuong Manh Le
2025-09-23 13:26:07 +07:00
committed by Cuong Manh Le
parent 56f8113bb0
commit ed826f7a95

View File

@@ -1786,7 +1786,7 @@ func goArm() string {
// upgradeUrl returns the url for downloading new ctrld binary.
func upgradeUrl(baseUrl string) string {
dlPath := fmt.Sprintf("%s-%s/ctrld", runtime.GOOS, runtime.GOARCH)
dlPath := fmt.Sprintf("v2/%s-%s/ctrld", runtime.GOOS, runtime.GOARCH)
// Use arm version set during build time, v5 binary can be run on higher arm version system.
if armVersion := goArm(); armVersion != "" {
dlPath = fmt.Sprintf("%s-%sv%s/ctrld", runtime.GOOS, runtime.GOARCH, armVersion)