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: 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 }