A bundle for Batect that provides a development container for Golang, with sensible default configuration.
Add the following to your
include: - type: git repo: https://github.com/batect/golang-bundle.git ref: XXX # Replace with latest version from https://github.com/batect/golang-bundle/releases
A container (based on the official Golang images) with sensible defaults for use with Golang.
It mounts the project directory into the container, enables run as current user mode and configures a cache for dependencies downloaded by Go.
tasks: build: description: Build the project. group: Build tasks run: container: golang-build-env command: go build . include: - type: git repo: https://github.com/batect/golang-bundle.git ref: XXX # Replace with latest version from https://github.com/batect/golang-bundle/releases
The Golang sample project also demonstrates how to use this bundle.
./batect --list-tasks to see a list of available tasks for this project.