Contributing to macpine
Thank you for your interest in contributing to macpine! We welcome contributions from everyone. This guide will help you get started.
Reporting Bugs and Suggesting Features
The best way to contribute is by providing feedback. If you've found a bug or have an idea for a new feature, please check the GitHub Issues to see if it has already been reported.
- For bugs: Please use the Bug report template.
- For features: Please use the Feature request template.
Provide as much detail as possible to help us understand and address your submission.
Setting up the Development Environment
To build macpine from source, you will need:
- Go (version specified in
go.mod, currently1.25.3or newer) - QEMU (a recent version is recommended)
-
makefor running build commands -
Clone the repository:
git clone https://github.com/beringresearch/macpine.git cd macpine -
Install dependencies:
go mod tidy
Building and Running
The project includes a Makefile to simplify common tasks.
-
Build the binary: This compiles the
alpinebinary into thebin/directory.make -
Install the binary: This copies the compiled binary to
/usr/local/bin. It may requiresudo.make install -
Format the code: Before submitting code, please ensure it is correctly formatted.
make fmt -
Clean the build artifacts:
make clean
Submitting Pull Requests
- Fork the repository on GitHub.
- Create a new branch for your changes.
- Make your changes and commit them with clear, descriptive messages.
- Push your branch to your fork.
- Open a pull request against the
mainbranch of theberingresearch/macpinerepository.
Security
Please refer to the Security Policy for details on how to report security vulnerabilities.
License
By contributing, you agree that your contributions will be licensed under the Apache License 2.0 that covers the project.