Added build number to terraform provider binary

The way the binary is currently built doesn't include the version
number.

This means that `terraform --version` doesn't pick up the version

```shell
$ terraform --version                                                        [130]
Terraform v0.12.24
+ provider.unifi (unversioned)
```

Adding the binary name in line with
https://www.terraform.io/docs/configuration/providers.html#plugin-names-and-versions
will let it show up correctly.
This commit is contained in:
Doug Ferris
2020-05-01 17:10:37 +10:00
committed by Paul Tyng
parent d43f0e56be
commit 37e292b983

View File

@@ -9,6 +9,7 @@ before:
builds:
- env:
- CGO_ENABLED=0
binary: terraform-provider-unifi_v{{.Version}}
goos:
- freebsd
- openbsd