From c6eb90708ec9c4328000afeb19c07587a80624ea Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 8 Oct 2024 16:37:05 +0800 Subject: [PATCH] fix: go build cache --- .github/workflows/agent.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 33200a5..b0bd7d5 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -64,6 +64,7 @@ jobs: # WARNING: This is temporary remove it after the next release of gopsutil - name: Patch gopsutil run: | + sudo rm -rf $(printf "%s%s" "$(go env GOMODCACHE)" "/github.com/shirou/gopsutil/v4@v4.24.9") go mod tidy -v curl -L https://github.com/shirou/gopsutil/pull/1722.patch | sudo patch -p1 -d $(printf "%s%s" "$(go env GOMODCACHE)" "/github.com/shirou/gopsutil/v4@v4.24.9")