This directory contains the definition of the Go builder.
To build the builder image for ubuntu-18 builder, run:
bazel build //builders/go:builder.imageTo build the builder image for ubuntu-22 builder, run:
bazel build //builders/go:builder_22.imageTo build the builder image for ubuntu-24 builder, run:
bazel build //builders/go:builder_24.imageTo build the sample application gomod_go_sum, run:
pack build sample-go --builder gcp/go --path builders/testdata/go/gomod_go_sum/ --trust-builder -vTo run the acceptance tests across all the products, run:
bazel test //builders/go/acceptance:acceptance_testFor each product, there exists a suite of tests. The build target is
builders/go/acceptance:<product>_test. Where <product> is replaced with the
acronym of the product. For example, to run the tests for Google Cloud
Functions, run:
bazel test //builders/go/acceptance:gcf_test