99designs / keyring

Go library providing a uniform interface across a range of secure credential stores
MIT License
580 stars 138 forks source link

Cross compile for brew using go releaser #117

Open maidul98 opened 1 year ago

maidul98 commented 1 year ago

If you are like me and use go releaser and have started using this package, you will notice that keychain doesn't appear on macOs. This is because the keychain is disabled in this package if CGO is not enabled. However, it didn't seem trivial to set up go releaser with CGO enabled until i found this https://github.com/plentico/osxcross-target

So if you are using go releaser with gitub action, use that. It worked flawlessly for me

ka2n commented 1 year ago

https://github.com/goreleaser/goreleaser-cross-example

is a complete example that uses Docker images and does cross-compilation on GitHub Actions :smile: .