pulumi/.github
Julien P bea5c00885
Move .version to /sdk and embed it (#15185)
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

go:embed can not traverse paths upwards, move .version so we can embed
it. This enables us to have the version available outside of binary
builds (where we use linker flags to embed the version in
sdk/go/common/version/version.go).

This is useful for automation API, where we want to have the current
version available to us, but don't want to force consumers of the API to
build and test with linker flags.

Blocking for https://github.com/pulumi/pulumi/pull/15049

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [ ] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`
2024-01-19 14:11:17 +00:00
..
scripts Move .version to /sdk and embed it (#15185) 2024-01-19 14:11:17 +00:00
workflows Move .version to /sdk and embed it (#15185) 2024-01-19 14:11:17 +00:00
PULL_REQUEST_TEMPLATE.md Add routine checks to pull request template 2023-05-12 13:34:19 -07:00