Commit Graph

58 Commits

Author SHA1 Message Date
James Bardin f85232a239 Remove darwin/386 from the build
There isn't a supported configuration that runs darwin/386, so remove it
from the build.
2016-11-16 13:46:57 -05:00
Anton Babenko f13abccd30 Fixed regexp to process comma-separated links to github issues in CHANGELOG.md 2016-10-27 20:07:37 +02:00
Clint 740b8bb9cb provider/aws: Run errcheck in tests (#8579)
* provider/aws: Add errcheck to Makefile, error on unchecked errors

* more exceptions

* updates for errcheck to pass

* reformat and spilt out the ignore statements

* narrow down ignores

* fix typo, only ignore Close and Write, instead of close or write
2016-09-02 09:24:17 -05:00
Jake Champlin 8cbef79dbf Allow specifying ldflags via env vars
Allows specifying `LD_FLAGS` during development builds.

```
$ LD_FLAGS="-linkmode=external" make dev
```

Since the version of DTrace on macOS Sierra (On the public beta's at least) has been updated, this allows DTrace to run on Terraform during development/debugging.

```
$ sudo dtrace -n 'pid$target::main.main:entry' -c "terraform apply"
dtrace: description 'pid$target::main.main:entry' matched 1 probe

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

foo = bar
dtrace: pid 23096 has exited
CPU     ID                    FUNCTION:NAME
  2 265673                  main.main:entry
```

Also redirects the `@which stringer` command inside the `generate` Makefile target to `/dev/null` so we stop echoing the path to the `stringer` binary on every call to `generate`.
2016-08-24 10:56:23 -04:00
James Nugent 11259dee07 build: Exclude darwin/arm from OS/Arch targets
Fixes #8365
2016-08-22 14:34:53 +02:00
Paul Hinze bb51834a4d
scripts/dist.sh: tweaks for recent hc-releases 2016-07-15 18:38:47 -06:00
Gabi Davar 33b3206ead make linux amd64 binaries static again.
* regression caused by mitchellh/gox#49
* pass CGO_ENABLED=0
2016-06-10 16:23:11 +03:00
Adam Ward 4a29be7b50 Don't assume dev platform was built 2016-05-16 10:00:44 +10:00
Chris Bednarski 6360e6c8b6 Implemented internal plugin calls; which allows us to compile plugins into the main terraform binary 2016-05-10 14:40:11 -04:00
Soren Mathiasen f44706c661 Reduce the size of the binaries 2016-04-19 15:15:56 +02:00
Chris Bednarski 77f8432d2f Improve performance of fmtcheck
Previously gofmt would run even on files under vendor which we don't care about, and then discard the results. This approach instead selects only the files we want to pass into gofmt.

- Before takes around 6.5 seconds
- Now takes around 2 seconds
2016-03-31 13:57:09 -07:00
Paul Hinze d38ee00039 travis: switch to unencrypted cookie
Otherwise rate limiting fix does not work for PRs from forks
2016-03-21 13:35:53 -05:00
Paul Hinze 39b5bd0efb travis: add git cookie to get higher rate limits for `go get`
Should fix messages like this from the Travis builds:

```
Daily bandwidth rate limit exceeded for IP 52.0.240.122.
```

Refs https://github.com/golang/go/issues/12933
2016-03-21 08:36:18 -05:00
Paul Hinze f001ca6c83 CHANGELOG: generate links, tweak script
Changelog link generation script gets:

 * OS X compatibility
 * Support for multiple links on a line
2016-03-16 09:55:01 -05:00
Martin Atkins 4121f79d11 Merge pull request #5313 from hashicorp/f-changelog-links
Script to linkify github issue references in CHANGELOG.md
2016-02-25 10:41:09 -08:00
Paul Hinze 0cf6ba6f64 README/Makefile: Mention & auto-install gox 2016-02-25 06:48:43 -06:00
Martin Atkins 94ff15fe5b Script to linkify github issue references in CHANGELOG.md
This fixes #4439 by making a compromise: the issues under the "unreleased"
heading will still not be links, because it's inconvenient for the
committers team to write out those links manually for each merge. However,
we'll run this script on release so that all of the *released* changes
are presented as clickable links, so people can quickly read through the
set of changes in each new release.
2016-02-24 17:34:14 -08:00
Paul Hinze d21b0897a9 Makefile/docs: Lock in 1.6 req, doc vendored deps
* Drop Go 1.5 compatibility env vars
 * Drop `make updatedeps` from `Makefile` and docs
 * Update README w/ vendored dep instructions
2016-02-24 16:13:49 -06:00
Paul O'Connor e3c6c05395 Put the equals in the correct place 2016-02-17 17:44:38 +01:00
Paul O'Connor 21f15aea3f Use new link ldflags syntax 2016-02-17 17:35:04 +01:00
Paul Hinze 6791172e21 build.sh: don't dive into vendored deps when building
Doing a straight `./...`  build results in errors from unvendored
package references being picked up in some vendored libraries'
`examples/` subdirs.

So we'll switch to the recommended `go list | grep -v /vendor/` strategy
to determine what to build.
2016-02-01 11:28:41 -06:00
Paul Hinze 6fe2703665 Vendor all dependencies w/ Godep
* Remove `make updatedeps` from Travis build. We'll follow up with more
   specific plans around dependency updating in subsequent PRs.
 * Update all `make` targets to set `GO15VENDOREXPERIMENT=1` and to
   filter out `/vendor/` from `./...` where appropriate.
 * Temporarily remove `vet` from the `make test` target until we can
   figure out how to get it to not vet `vendor/`. (Initial
   experimentation failed to yield the proper incantation.)

Everything is pinned to current master, with the exception of:

 * Azure/azure-sdk-for-go which is pinned before the breaking change today
 * aws/aws-sdk-go which is pinned to the most recent tag

The documentation still needs to be updated, which we can do in a follow
up PR. The goal here is to unblock release.
2016-01-29 15:08:48 -06:00
Seth Vargo 6855c4c4e0 Remove old heroku stuffs 2016-01-14 16:00:35 -05:00
James Nugent 094e380bb1 Add Solaris builds of Terraform 2016-01-05 09:53:19 -05:00
James Nugent 45a3b5c542 Add script for running tests in Travis 2015-12-22 11:27:04 -05:00
James Nugent 6d6487e288 Make gofmt errors fail build and add `make fmt`
We may want to consider requiring `gofmt -s` compliance in future
builds, but for now we just use `gofmt`.
2015-12-17 12:35:13 -05:00
clint shryock 642e2e9433 update scripts/dest.sh to create a sig file 2015-11-24 09:21:41 -06:00
Paul Hinze 203a565161 scripts: check for the correct env vars in dist.sh
we need AWS keys now, not bintray keys
2015-11-18 17:16:03 -06:00
clint shryock a80f6fd979 Always deploy from stable website branch 2015-11-09 10:18:53 -06:00
Seth Vargo e98ab725c2 Use hc-releases 2015-10-26 17:21:04 -04:00
Seth Vargo 25ab79ba43 Apply shopt options to include hidden files 2015-10-08 13:45:54 -04:00
Seth Vargo 3e7e3232a6 Use a faster middleman deploy 2015-09-20 14:08:28 -04:00
Paul Hinze 3080c827d8 scripts: change website_push to push from HEAD
so it works properly on release branches
2015-07-28 18:38:59 -05:00
Jeff Zellner ac462d2ef1 use /usr/bin/env bash 2015-06-30 11:52:11 -06:00
Mitchell Hashimoto 9422571ca2 update CHANGELOG 2015-05-15 20:36:58 -07:00
Paul Hinze 11280a09b3 Merge pull request #1538 from fatih/build-script-fix
scripts/build.sh: fix GOPATH/bin folder breaking build
2015-04-15 11:50:55 -05:00
Fatih Arslan 0c80207bff scripts/build.sh: fix GOPATH/bin folder breaking build
If GOPATH/bin doesn't exists the build scripts just exists, leaving the
`terraform/bin` folder with only one single binary called `terraform`.
Discovered while setting up a new GOPATH just for terraform.
2015-04-15 19:36:44 +03:00
Eli Shvartsman 44d6123894 get dependencies without installing them
For now, make dev creates in ${MAIN_GOPATH}/bin/ files like 'provider-google' alongside with 'terraform-provider-google'.
If we decided to build plugins with custom names and install them manually with 'cp' command, it could make sense not to do it here.
2015-04-15 13:08:37 +03:00
Jeff Mitchell 996e7ff3e4 Add quickdev option; skips getting dependencies to make repeated builds a bit faster and less network-heavy 2015-03-06 17:07:16 +00:00
Joseph Anthony Pasquale Holsten 29a91c7db7 quote $DIR to allow $GOPATH to include spaces 2014-11-25 15:26:41 -08:00
Mitchell Hashimoto 5152f05d0a scripts: copy binaries to gopath 2014-09-29 18:18:14 -07:00
Mitchell Hashimoto 32c88dce4a scripts: make bin/ dir 2014-08-31 09:31:57 -07:00
Mitchell Hashimoto 1b191a5183 scripts: fix dev build 2014-08-28 16:47:14 -07:00
Mitchell Hashimoto e7e60cb493 scripts: quiet 2014-08-28 10:21:13 -07:00
Mitchell Hashimoto f67dfce2ae scripts: fix extension in file copy for build 2014-08-28 10:20:49 -07:00
Mitchell Hashimoto 0b5b971f8e scripts: build script cross compiles 2014-08-28 09:54:09 -07:00
Mitchell Hashimoto f46d3ff332 scripts: don't copy libucl.dll anymore 2014-08-19 10:02:29 -07:00
Mitchell Hashimoto afc942358d website: work with new file format 2014-08-05 14:32:27 -07:00
Mitchell Hashimoto c5bf448d8c scripts: make dist executable 2014-08-05 14:28:33 -07:00
Mitchell Hashimoto c834254b7f scripts: underscore instead of hyphen 2014-08-05 10:36:01 -07:00