Revert "feat: add commit HASH to extra"
This reverts commit de9a3d2118
.
This commit is contained in:
parent
de9a3d2118
commit
6c11041d9c
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user