From 6c11041d9c732c2e72514099e7b3669542e59110 Mon Sep 17 00:00:00 2001 From: liruichen Date: Thu, 7 Sep 2023 18:48:44 +0800 Subject: [PATCH] Revert "feat: add commit HASH to extra" This reverts commit de9a3d2118165dbab5e2ea7a5e00a6ba5a4f42bc. --- pkg/build/agent.tpl | 9 --------- 1 file changed, 9 deletions(-) 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{}