The example in this repository is used in the Cloud Build GitHub app tutorial.
If you are not currently using Go modules, add the following step to the cloudbuild.yaml
build configuration file:
steps:
- name: golang
args: ['go', 'mod', 'init', 'github.com/your/import/path']
In this example, the specified GOPATH
is github.com/your/import/path
.