Skip to content

Commit

Permalink
Fix build check
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Mar 8, 2023
1 parent 0cec92d commit 87dd328
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/internal/build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"os"
"os/exec"
"strings"

"github.com/sagernet/sing-box/cmd/internal/build_shared"
C "github.com/sagernet/sing-box/constant"
Expand All @@ -18,8 +19,10 @@ func main() {
log.Fatal(err)
}

currentTag = strings.TrimSpace(currentTag)

if "v"+C.Version != currentTag {
log.Fatal("version mismatch, update constant.Version to ", currentTag[1:])
log.Fatal("version mismatch, update constant.Version (", C.Version, ")", " to ", currentTag[1:])
}

command := exec.Command(os.Args[1], os.Args[2:]...)
Expand Down

0 comments on commit 87dd328

Please sign in to comment.