Building
Binary
Run the following commands to compile the binary.
cd cmd/octo-linter
go generate
go build -o octo-linter
Use GOOS and GOARCH environment variables to build binary for a specific platform. More information
can be found in the Go docs.
Generator
Certain *.go files are generated from a template. Search for go:generate directives, and look into
(gen.go)[gen.go] to get details.
Docker image
To build the docker image, use the following command.
docker build -t octo-linter .
If an image is built on a different platform than linux/amd64, an additional --platform=linux/amd64
argument is necessary. See command reference
for docker build.