Commit Graph

11 Commits

Author SHA1 Message Date
Paddy
21499000ed
Switch to using golangci-lint instead of go-metalinter (#3049)
* Switch to using golangci-lint instead of gometalinter.

* Update list of allowed ignored errors.

* Add GOFLAG=mod-vendor env var to travis.

* Fix env vars.
2019-02-14 16:52:09 -08:00
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
Riley Karson
3d43932a49
Update go versions used in development (#2934)
Adding `.x` to Travis means use the latest minor version according to its docs.

I didn't update the "Requirements" header because this is just because of Go Modules; see https://github.com/terraform-providers/terraform-provider-google/pull/2932 for why. Since it's just a development change, it doesn't impact _using_ the provider.

Although, out of curiosity- is that header for development? Or is there a real requirement to have Go installed to use Terraform providers?
2019-02-01 07:58:37 -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
ee8e300ff0 Add 2.0.0 branch to .travis.yml (#2434)
I keep breaking `make fmt` so let's stop my reign of terror
2018-12-20 17:22:22 -08:00
Paddy
e2a7bf1cf7
Use Go v1.11.0 2018-09-05 15:20:00 -07:00
Radek Simko
2192210118
make: Add website + website-test targets 2018-04-30 08:53:24 +01:00
Paddy
fdba19ae70 Use go1.9.1 for Travis
Go 1.9.1 was just released to fix a security vulnerability in 1.9.0. Let's use it for our Travis tests.
2017-10-06 11:27:26 -07:00
Radek Simko
7ff344ecb1 travis: Bump Go to 1.9 2017-09-26 13:46:45 +01:00
Jake Champlin
0e43124fce
Updating Makefile + Add gitignore 2017-06-09 14:30:08 -04:00