fix: go build cache

This commit is contained in:
naiba 2024-10-08 16:37:05 +08:00
parent d212b98177
commit c6eb90708e

View File

@ -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")