From c9f875d95b8493849f3615d81263022e2b1a1d40 Mon Sep 17 00:00:00 2001 From: linyows Date: Fri, 6 Oct 2023 15:11:49 +0900 Subject: [PATCH 1/2] CGO_ENABLE for goreleaser --- .goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a8600e4..014fab5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -8,11 +8,11 @@ before: - go generate ./... builds: - env: - - CGO_ENABLED=0 + - CGO_ENABLED=1 id: warp main: ./cmd/warp - goos: [linux, darwin] - goarch: [amd64, arm64] + goos: [linux] + goarch: [amd64] ldflags: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser - env: From c2d2a6ea8603dc2fcc74952d2f95e21e297c5857 Mon Sep 17 00:00:00 2001 From: linyows Date: Fri, 6 Oct 2023 15:12:11 +0900 Subject: [PATCH 2/2] typo --- plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins.go b/plugins.go index 1b0214f..b532a92 100644 --- a/plugins.go +++ b/plugins.go @@ -48,7 +48,7 @@ func (p *Plugins) isDirExists() bool { } func (p *Plugins) setPath() { - p.path = "/opt/warp/plugin" + p.path = "/opt/warp/plugins" path := os.Getenv("PLUGIN_PATH") if path != "" { p.path = path @@ -94,7 +94,7 @@ func (p *Plugins) load() error { plug, err := p.lookup(n) if err != nil { - fmt.Printf("plugin load error(%s): %#v\n", n, err) + fmt.Printf("plugin load error(%s): %s\n", n, err) continue }