From dd7e4132f9af99054f66d0e1b9dbe6cfb9c306ba Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:52:50 +0800 Subject: [PATCH] fix: memory leak on Windows when calling SwapMemory (#72) * fix: memory leak on Windows when calling SwapMemory * update --- .github/workflows/agent.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index f2a7a78..fc38063 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -61,6 +61,11 @@ jobs: with: go-version: "1.20.14" + # WARNING: This is temporary remove it after the next release of gopsutil + - name: Patch gopsutil + run: | + 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") + - name: Build Test if: github.event_name != 'push' || !contains(github.ref, 'refs/tags/') uses: goreleaser/goreleaser-action@v6