From 87dd328700a35a9d2dd174561ea2fd71b67754d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 8 Mar 2023 15:08:59 +0800 Subject: [PATCH] Fix build check --- cmd/internal/build/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/internal/build/main.go b/cmd/internal/build/main.go index d0b5c1f6..47da4b1d 100644 --- a/cmd/internal/build/main.go +++ b/cmd/internal/build/main.go @@ -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" @@ -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:]...)