Skip to content

Commit

Permalink
Merge pull request #24 from linyows/cgoenable
Browse files Browse the repository at this point in the history
Enable CGO
  • Loading branch information
linyows authored Oct 6, 2023
2 parents b1a353c + c2d2a6e commit ebfd3d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit ebfd3d7

Please sign in to comment.