fix build

This commit is contained in:
chrislu
2025-06-03 22:50:45 -07:00
parent bd4891a117
commit 2f3de5e199

View File

@@ -10,7 +10,7 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/seaweedfs/seaweedfs/weed/util/version" swv "github.com/seaweedfs/seaweedfs/weed/util/version"
"io" "io"
"net/http" "net/http"
"os" "os"
@@ -118,7 +118,7 @@ func runUpdate(cmd *Command, args []string) bool {
} }
func downloadRelease(ctx context.Context, target string, ver string) (version string, err error) { func downloadRelease(ctx context.Context, target string, ver string) (version string, err error) {
currentVersion := version.VERSION_NUMBER currentVersion := swv.VERSION_NUMBER
rel, err := GitHubLatestRelease(ctx, ver, "seaweedfs", "seaweedfs") rel, err := GitHubLatestRelease(ctx, ver, "seaweedfs", "seaweedfs")
if err != nil { if err != nil {
return "", err return "", err