diff --git a/pkg/build/agent.tpl b/pkg/build/agent.tpl index 062ba06..cd10605 100644 --- a/pkg/build/agent.tpl +++ b/pkg/build/agent.tpl @@ -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{}