github.com/goreleaser/goreleaser@v1.25.1/www/docs/errors/build.md (about) 1 # Build Errors 2 3 ## Undefined methods 4 5 If you see an error that looks like this: 6 7 ```shell 8 тип release failed after 14s error=failed to build for darwin_amd64_v1: exit status 2: # github.com/rjeczalik/notify 9 ../../../../go/pkg/mod/github.com/rjeczalik/notify@v0.9.2/watcher_fsevents.go:49:11: undefined: stream 10 ../../../../go/pkg/mod/github.com/rjeczalik/notify@v0.9.2/watcher_fsevents.go:200:13: undefined: newStream 11 ``` 12 13 It usually means that some dependency you are using needs CGO, or does not have 14 an implementation for the given OS. 15 16 You can check that locally with: 17 18 ```bash 19 GOOS=darwin GOARCH=amd64 go build ./... 20 CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build ./... 21 ``` 22 23 If the first fails, but the seconds succeeds, you need to set up 24 [CGO](/limitations/cgo). If both fail, your dependency don't have an 25 implementation for some methods for Darwin amd64 (in this example).