sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.88k stars 572 forks source link

Can no longer compile from Source - Missing oto #127

Closed danie-dejager closed 1 year ago

danie-dejager commented 1 year ago

The only version of oto I see is for version 2.x. https://github.com/hajimehoshi/oto/releases

When I compile:

github.com/hajimehoshi/oto
# github.com/hajimehoshi/oto
../../../go/pkg/mod/github.com/hajimehoshi/oto@v0.1.1/player.go:25:18: undefined: player
../../../go/pkg/mod/github.com/hajimehoshi/oto@v0.1.1/player.go:49:12: undefined: newPlayer

I can't get past this.

danie-dejager commented 1 year ago

I changed the version of oto from 0.1.1 to 1.0.1 and now I only get ../../../go/pkg/mod/github.com/hajimehoshi/oto@v1.0.1/context.go:69:12: undefined: newDriver as an error

danie-dejager commented 1 year ago

I found my issue. I passed "CGO_ENABLED=0" to the build command. Removing that completed the build. I changed my compile command from: GO111MODULE=on CGO_ENABLED=0 go build -v -trimpath -buildmode=pie -modcacherw -tags netgo -ldflags="-s -w" -o sampler to GO111MODULE=on go build -v -trimpath -buildmode=pie -modcacherw -tags netgo '-ldflags=-s -w' -o sampler