Commit Graph

14 Commits

Author SHA1 Message Date
Riley Karson
8a237de2dd
Update gometalinter for modules, add staticcheck (#2908)
This isn't working locally, but it matches the changes made in https://github.com/terraform-providers/terraform-provider-azurerm/pull/2722 so maybe something freaky is going on and it will only work in CI?

Edit: This only works in CI (well, at least doesn't work locally for *me*) but the same is true in the Azure provider. Most of those rules can be turned back on provided we make the corresponding code changes, but let's bring back `unused` for now. I'll dupe over to tpgb on approval.
2019-02-05 11:47:40 -08:00
Chris Stephens
3fc3c5d61a
Increase acceptance test timeout to 4 hours (#2899) 2019-01-18 14:53:16 -08:00
Riley Karson
e2d2bf4806
Use gofmt -s in make fmt (#2798)
Travis checks for `-s` results, so we should run it locally as well.
2019-01-04 13:00:44 -08:00
Paddy
961c878e0d Switch to using Go modules. (#2679)
Switch to using Go modules.

This migrates our vendor.json to use Go 1.11's modules system, and
replaces the vendor folder with the output of go mod vendor.

The vendored code should remain basically the same; I believe some
tree shaking of packages and support scripts/licenses/READMEs/etc.
happened.

This also fixes Travis and our Makefile to no longer use govendor.
2018-12-20 17:22:22 -08:00
Riley Karson
ee48586fb2 Add gometalinter (#2627)
Parallel to https://github.com/terraform-providers/terraform-provider-azurerm/pull/2116

We need to run `gofmt -s` to switch over to the `gofmt` rule, and MM is going to complicate that. Once `1.20.0` is done, I'll run that command on flat MM files & add a `gofmt -s` step to MM generation (goimports does gofmt but doesn't do the s flag for silly reasons).

I'll duplicate this over to tpgb once this PR is merged.
2018-12-20 17:22:22 -08:00
Riley Karson
cfedd9b0f3 Add new version + linker flags. (#2438) 2018-12-20 17:22:22 -08:00
Nathan McKinley
902675c324 Reverting 1.20 and 1.19 cherrypick branches. 2018-12-20 17:22:22 -08:00
Riley Karson
3f8e61d93a Add new version + linker flags. (#2438) 2018-12-12 17:23:35 -08:00
Chris Stephens
5b7da72291 Force acceptance test failure if .Set errors (#1934)
Many of the d.Set calls do not handle the error that comes back. This can lead
to things that appear to be set but are silently failing. This change adds a
flag to the makefile to force a panic if there are unhandled errors.
2018-08-23 11:53:18 -07:00
Radek Simko
2192210118
make: Add website + website-test targets 2018-04-30 08:53:24 +01:00
stack72
9ce542e1fb Adding back the GNUmakefile test-compile step 2017-06-30 11:16:10 +03:00
stack72
fc1507fe52 Simplifying the GNUMakefile 2017-06-29 16:43:40 +03:00
Jake Champlin
c587774384
Updating Makefile + Add gitignore 2017-06-06 16:27:28 -04:00
Jake
5d420e83f6 initial commit 2017-06-05 20:54:03 +00:00