Commit Graph

134 Commits

Author SHA1 Message Date
Radek Simko
34d90d4be0
httpclient: Introduce composable UserAgent()
This interface is meant to replace the following ones (in use by some providers):

 - httpclient.UserAgentString() (e.g. AzureRM, Google)
 - terraform.UserAgentString (e.g. OpenStack, ProfitBricks)
 - terraform.VersionString (e.g. AWS, AzureStack, DigitalOcean, Kubernetes)

This also proposes the initial UA string to be set to

    HashiCorp Terraform/X.Y.Z (+https://www.terraform.io)
2019-08-05 11:07:21 +01:00
James Bardin
36b8be43e8 use the new version package
Update all references to the version values to use the new package.
The VersionString function was left in the terraform package
specifically for the aws provider, which is vendored. We can remove that
last call once the provider is updated.
2017-10-19 21:48:08 -04:00
James Bardin
71e47e56a0 release: clean up after v0.10.7 2017-10-02 18:54:33 +00:00
James Bardin
8ba8fc79c1
v0.10.7 2017-10-02 18:46:49 +00:00
Martin Atkins
2360f48a7d release: clean up after v0.10.6 2017-09-19 14:08:54 +00:00
Martin Atkins
8712b03839
v0.10.6 2017-09-19 13:56:27 +00:00
Martin Atkins
67bdadf5c6 release: clean up after v0.10.5 2017-09-14 21:40:05 +00:00
Martin Atkins
1f054df752
v0.10.5 2017-09-14 18:15:35 +00:00
James Bardin
25f6e61047 release: clean up after v0.10.4 2017-09-06 20:33:48 +00:00
James Bardin
10df48ef40
v0.10.4 2017-09-06 20:22:10 +00:00
Martin Atkins
adb6a089ff release: clean up after v0.10.3 2017-08-30 21:56:26 +00:00
Martin Atkins
1511d447e7
v0.10.3 2017-08-30 21:41:28 +00:00
James Bardin
08339b004b release: clean up after v0.10.2 2017-08-16 17:38:16 +00:00
James Bardin
a1d06eb973
v0.10.2 2017-08-16 17:25:37 +00:00
James Bardin
bb00fd47c0 release: clean up after v0.10.1 2017-08-15 22:21:17 +00:00
James Bardin
f6d16263a0
v0.10.1 2017-08-15 21:50:02 +00:00
Jake Champlin
8e6a0845c1
Cleanup after 0.10 release 2017-08-02 14:40:37 -04:00
Martin Atkins
1fac5de738 release: clean up after v0.10.0-rc1 2017-07-19 14:07:06 -07:00
Martin Atkins
243951c70a
v0.10.0-rc1 2017-07-19 14:05:43 -07:00
Martin Atkins
c4857bdbaf release: clean up after v0.10.0-beta1 2017-06-22 22:20:23 +00:00
Martin Atkins
a26ff83279
v0.10.0-beta1 2017-06-22 20:55:33 +00:00
Martin Atkins
9e0c52c6db release: clean up after v0.9.8 2017-06-08 00:26:19 +00:00
Martin Atkins
8d560482c3
v0.9.8 2017-06-08 00:14:54 +00:00
stack72
1b78f50db5 release cleanup after v0.9.7 2017-06-07 17:45:11 +03:00
stack72
20ca74d0a0
v0.9.7 2017-06-07 14:34:30 +00:00
clint
d6fcc82ecc release: clean up after v0.9.6 2017-05-25 16:09:31 +00:00
clint
85e0979c6a
v0.9.6 2017-05-25 15:56:03 +00:00
Jake Champlin
91ab75991d
core: use codified default for prerelease string 2017-05-22 11:28:15 -04:00
Jake Champlin
bd68789006
core: Use environment variables to set VersionPrerelease at compile time
Instead of using a hardcoded version prerelease string, which makes release automation difficult, set the version prerelease string from an environment variable via the go linker tool during compile time.

The environment variable `TF_RELEASE` should only be set via the `make bin` target, and thus leaves the version prerelease string unset. Otherwise, when running a local compile of terraform via the `make dev` makefile target, the version prerelease string is set to `"dev"`, as usual.

This also requires some changes to both the circonus and postgresql providers, as they directly used the `VersionPrerelease` constant. We now simply call the `VersionString()` function, which returns the proper interpolated version string with the prerelease string populated correctly.

`TF_RELEASE` is unset:

```sh
$ make dev
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/05/22 10:38:19 Generated command/internal_plugin_list.go
==> Removing old directory...
==> Building...
Number of parallel builds: 3

-->     linux/amd64: github.com/hashicorp/terraform

==> Results:
total 209M
-rwxr-xr-x 1 jake jake 209M May 22 10:39 terraform

$ terraform version
Terraform v0.9.6-dev (fd472e4a86500606b03c314f70d11f2bc4bc84e5+CHANGES)
```

`TF_RELEASE` is set (mimicking the `make bin` target):

```sh
$ TF_RELEASE=1 make dev
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/05/22 10:40:39 Generated command/internal_plugin_list.go
==> Removing old directory...
==> Building...
Number of parallel builds: 3

-->     linux/amd64: github.com/hashicorp/terraform

==> Results:
total 121M
-rwxr-xr-x 1 jake jake 121M May 22 10:42 terraform

$ terraform version
Terraform v0.9.6
```
2017-05-22 10:49:15 -04:00
stack72
7cb334b635 release: clean up after v0.9.5 2017-05-11 09:32:32 +00:00
stack72
a59ee0b30e
v0.9.5 2017-05-11 09:22:11 +00:00
tombuildsstuff
74eec4fab5 release: clean up after v0.9.4 2017-04-26 12:45:27 +00:00
tombuildsstuff
277bbf65d1
v0.9.4 2017-04-26 12:35:28 +00:00
Martin Atkins
381adca0af release: clean up after v0.9.3 2017-04-12 20:39:57 +00:00
Martin Atkins
1601af7a07
v0.9.3 2017-04-12 20:21:42 +00:00
Paul Stack
7479b8d150 release: clean up after v0.9.2 2017-03-28 10:05:25 +00:00
Paul Stack
6365269541
v0.9.2 2017-03-28 09:56:35 +00:00
Mitchell Hashimoto
1d1dc7cf30 release: clean up after v0.9.1 2017-03-17 22:54:23 +00:00
Mitchell Hashimoto
7c25ef851b
v0.9.1 2017-03-17 22:48:44 +00:00
Mitchell Hashimoto
37b3fe1119 release: clean up after v0.9.0 2017-03-15 16:39:53 +00:00
Mitchell Hashimoto
5bd194faa6
v0.9.0 2017-03-15 16:33:13 +00:00
Mitchell Hashimoto
a2d78b62aa release: clean up after v0.9.0-beta2 2017-03-02 19:42:41 +00:00
Mitchell Hashimoto
dbb920ff54
v0.9.0-beta2 2017-03-02 19:38:11 +00:00
Mitchell Hashimoto
1607c1187d release: clean up after v0.9.0-beta1 2017-02-15 22:39:57 +00:00
Mitchell Hashimoto
4e96da57ee
v0.9.0-beta1 2017-02-15 22:35:37 +00:00
Mitchell Hashimoto
9183be4c83
update master version to 0.9.0-dev 2017-01-29 18:46:18 -08:00
Radek Simko
0bafea87bb release: clean up after v0.8.5 2017-01-26 16:18:34 +00:00
Radek Simko
b4d477660b
v0.8.5 2017-01-26 16:01:59 +00:00
clint
f895f93769 release: clean up after v0.8.4 2017-01-11 17:21:31 +00:00
clint
a791ff09b2
v0.8.4 2017-01-11 17:03:56 +00:00