fix v0 ci & bugs (#91)

* fix potenial race

* feat: add switch for nat and query

* update gopsutil & fix ci

---------

Co-authored-by: ChrisKim <[email protected]>
This commit is contained in:
UUBulb
2024-11-24 01:02:03 +08:00
committed by GitHub
co-authored by ChrisKim
parent 34faa8d63a
commit 293ef0b8b2
5 changed files with 61 additions and 66 deletions
-7
View File
@@ -61,13 +61,6 @@ jobs:
with:
go-version: "1.20.14"
# 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/[email protected]")
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/[email protected]")
- name: Build Test
if: github.event_name != 'push' || !contains(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6