Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cross Compilation of Go Releaser #139

Closed
abhisek opened this issue Oct 30, 2023 · 3 comments
Closed

Support Cross Compilation of Go Releaser #139

abhisek opened this issue Oct 30, 2023 · 3 comments

Comments

@abhisek
Copy link
Member

abhisek commented Oct 30, 2023

The goreleaser-action is broken due to CGO_ENABLED=1.
Examples: https://github.com/safedep/vet/actions/workflows/goreleaser.yml

This is because we want to cross-compile for MacOS which needs native compiler tool chain when CGO_ENABLED=1. We need CGO because we are now using Tree Sitter for static code analysis (parsing).

We need to explore using goreleaser cross compilation tool chain or look at using Github Action's MacOS build environment.

@abhisek
Copy link
Member Author

abhisek commented Nov 3, 2023

Looks like using osxcross is a viable option for this
goreleaser/goreleaser-action#233

@abhisek
Copy link
Member Author

abhisek commented Nov 3, 2023

Why do we need CGO?

We are using https://github.com/smacker/go-tree-sitter for code parsing and analysis

@abhisek
Copy link
Member Author

abhisek commented Nov 3, 2023

This is fixed in #141

@abhisek abhisek closed this as completed Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant