pulumi/sdk/go
Michael Bridgen c48b9d9eaf
Accept short branch names in GitRepo.Branch (#10118)
* Accept short branch names in GitRepo.Branch

Users often give short names for branches -- e.g., `dev`, rather than
`refs/heads/dev`. This commit makes that work rather than produce an
error, by adopting the heuristic that anything that doesn't look like a
full branch name (i.e., not starting with ref/heads/) must be a short
name.

Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
2022-07-13 16:42:45 +01:00
..
auto Accept short branch names in GitRepo.Branch (#10118) 2022-07-13 16:42:45 +01:00
common Address engine data races detected by `go test -race` (#10081) 2022-07-12 09:39:07 -07:00
pulumi Handle input types in return position of ApplyT (#10110) 2022-07-12 22:06:12 -07:00
pulumi-language-go Poll gRPC healthchecks to auto-cancel sub-processes (#9735) 2022-06-06 13:28:00 +01:00
Makefile Remove PROJECT_ROOT Make var (#9953) 2022-06-24 10:04:40 -04:00
README.md `pulumi update` => `pulumi up` (#2702) 2019-05-06 14:00:18 -07:00

README.md

Pulumi Golang SDK

This directory contains support for writing Pulumi programs in the Go language. There are two aspects to this:

  • pulumi/ contains the client language bindings Pulumi program's code directly against;
  • pulumi-language-go/ contains the language host plugin that the Pulumi engine uses to orchestrate updates.

To author a Pulumi program in Go, simply say so in your Pulumi.yaml

name: <my-project>
runtime: go

and ensure you have pulumi-language-go on your path (it is distributed in the Pulumi download automatically).

By default, the language plugin will use your project's name, <my-project>, as the executable that it loads. This too must be on your path for the language provider to load it when you run pulumi preview or pulumi up.