Go Roles

ensure-go

Install go

Role Variables

go_install_dir
Default: /usr/local/

Directory to install go in.

go_version
Default: 1.13
go_os
Default: {{ ansible_system | lower }}
go_arch
Default: amd64 / 386
ensure-golangci-lint

Ensure golangci-lint is installed

Role Variables

golangci_lint_version

Version of golangci-lint to install

go

Run go command in a source directory. Assumes the appropriate version of go has been installed.

Role Variables

go_command

Go command to run. This parameter is mandatory. Examples are “test”, “run” or “build”

go_package_dir

Directory of the affected go package.

go_bin_path
Default: {{ go_install_dir }}/go/bin

Path to go bin directory

zuul_work_dir
Default: {{ zuul.project.src_dir }}

Directory to run go in.

golangci-lint

Run golangci-lint

Role Variables

zuul_work_dir
Default: {{ zuul.project.src_dir }}

The location of the main working directory of the job.

golangci_lint_options

Arguments passed to golangci-lint