Revert "feat: add commit HASH to extra"

This reverts commit de9a3d2118.
This commit is contained in:
liruichen 2023-09-07 18:48:44 +08:00
parent de9a3d2118
commit 6c11041d9c

View File

@ -30,7 +30,6 @@ import (
"sync/atomic"
"time"
"testing"
"os/exec"
"{{.GlobalCoverVarImportPath}}/websocket"
@ -116,14 +115,6 @@ func register (host string) {
time.Sleep(waitDelay)
continue
}
cmd := exec.Command("git", "describe", "--abbrev=8", "--always")
output, err := cmd.Output()
if err != nil {
fmt.Println("git describe Error:", err)
}else{
version := string(output)
register_extra = register_extra + "_" + version
}
// 注册,直接将元信息放在 ws 地址中
v := url.Values{}