Browse Source

fix build

pull/5783/merge
chrislu 6 days ago
parent
commit
2f3de5e199
  1. 4
      weed/command/update.go

4
weed/command/update.go

@ -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

Loading…
Cancel
Save