Skip to content

Commit a420266

Browse files
committed
v2.2.0 (#576)
NOTE: Switched to go1.17 due to goreleaser 1.10.0 no longer preventing an attempt to build for windows arm64, and thus causing an error cutting a new release. Decided to bump go version support rather than pin to 1.9.2.
1 parent 632d283 commit a420266

File tree

81 files changed

+204
-2497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+204
-2497
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Install Go
1010
uses: actions/setup-go@v2
1111
with:
12-
go-version: 1.16.x
12+
go-version: 1.17.x
1313
- name: Restore cache
1414
uses: actions/cache@v2
1515
with:
@@ -24,7 +24,7 @@ jobs:
2424
test:
2525
strategy:
2626
matrix:
27-
go-version: [1.16.x]
27+
go-version: [1.17.x]
2828
platform: [ubuntu-latest, macos-latest, windows-latest]
2929
runs-on: ${{ matrix.platform }}
3030
steps:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install Go
5454
uses: actions/setup-go@v2
5555
with:
56-
go-version: 1.16.x
56+
go-version: 1.17.x
5757
- name: Generate Docs
5858
run: |
5959
make generate-docs

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v2
2525
with:
26-
go-version: 1.16.x
26+
go-version: 1.17.x
2727
- name: Import GPG key
2828
id: import_gpg
2929
uses: fastly/[email protected]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ example.tf
55
terraform.tfplan
66
terraform.tfstate
77
bin/
8+
dist/
89
modules-dev/
910
/pkg/
1011
website/.vagrant

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## 2.2.0 (Unreleased)
1+
## 2.3.0 (Unreleased)
2+
3+
## 2.2.0 (July 5, 2022)
4+
5+
ENHANCEMENTS:
6+
7+
* Data Source: fastly_services [#575](https://github.com/fastly/terraform-provider-fastly/pull/575)
28

39
## 2.1.0 (June 27, 2022)
410

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ VERSION=$(shell git describe --tags --always)
88
VERSION_SHORT=$(shell git describe --tags --always --abbrev=0)
99
DOCS_PROVIDER_VERSION=$(subst v,,$(VERSION_SHORT))
1010

11+
GOHOSTOS ?= $(shell go env GOHOSTOS || echo unknown)
12+
GOHOSTARCH ?= $(shell go env GOHOSTARCH || echo unknown)
13+
1114
# Use a parallelism of 4 by default for tests, overriding whatever GOMAXPROCS is
1215
# set to. For the acceptance tests especially, the main bottleneck affecting the
1316
# tests is network bandwidth and Fastly API rate limits. Therefore using the
@@ -58,6 +61,22 @@ fmtcheck:
5861
errcheck:
5962
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
6063

64+
# DISABLED until Terraform provider supports go1.18 as goreleaser can't be
65+
# installed with a version less than 1.18.
66+
#
67+
# .PHONY: goreleaser-bin
68+
# goreleaser-bin:
69+
# go install github.com/goreleaser/goreleaser@latest
70+
71+
# You can pass flags to goreleaser via GORELEASER_ARGS
72+
# --skip-validate will skip the checks
73+
# --rm-dist will save you deleting the dist dir
74+
# --single-target will be quicker and only build for your os & architecture
75+
# e.g.
76+
# make goreleaser GORELEASER_ARGS="--skip-validate --rm-dist"
77+
.PHONY: goreleaser
78+
goreleaser:
79+
@GOHOSTOS="${GOHOSTOS}" GOHOSTARCH="${GOHOSTARCH}" goreleaser build ${GORELEASER_ARGS}
6180

6281
test-compile:
6382
@if [ "$(TEST)" = "./..." ]; then \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Requirements
99
------------
1010

1111
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x or higher
12-
- [Go](https://golang.org/doc/install) 1.16 (to build the provider plugin)
12+
- [Go](https://golang.org/doc/install) 1.17 (to build the provider plugin)
1313

1414
> NOTE: the last version of the Fastly provider to support Terraform 0.11.x and below was [v0.26.0](https://github.com/fastly/terraform-provider-fastly/releases/tag/v0.26.0)
1515
@@ -31,7 +31,7 @@ $ make build
3131

3232
## Developing the Provider
3333

34-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.16+ is *required*).
34+
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.17+ is *required*).
3535

3636
To compile the provider, run `make build`. This will build the provider and put the provider binary in a local `bin` directory.
3737

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ terraform {
2525
required_providers {
2626
fastly = {
2727
source = "fastly/fastly"
28-
version = ">= 2.1.0"
28+
version = ">= 2.2.0"
2929
}
3030
}
3131
}

go.mod

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fastly/terraform-provider-fastly
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/bflad/tfproviderlint v0.27.1
@@ -12,3 +12,85 @@ require (
1212
github.com/stretchr/testify v1.7.0
1313
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
1414
)
15+
16+
require (
17+
cloud.google.com/go v0.65.0 // indirect
18+
cloud.google.com/go/storage v1.10.0 // indirect
19+
github.com/Masterminds/goutils v1.1.0 // indirect
20+
github.com/Masterminds/semver v1.5.0 // indirect
21+
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
22+
github.com/agext/levenshtein v1.2.2 // indirect
23+
github.com/apparentlymart/go-cidr v1.1.0 // indirect
24+
github.com/apparentlymart/go-textseg/v12 v12.0.0 // indirect
25+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
26+
github.com/armon/go-radix v1.0.0 // indirect
27+
github.com/aws/aws-sdk-go v1.37.0 // indirect
28+
github.com/bflad/gopaniccheck v0.1.0 // indirect
29+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
30+
github.com/bgentry/speakeasy v0.1.0 // indirect
31+
github.com/davecgh/go-spew v1.1.1 // indirect
32+
github.com/fatih/color v1.7.0 // indirect
33+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
34+
github.com/golang/protobuf v1.4.2 // indirect
35+
github.com/google/go-querystring v1.1.0 // indirect
36+
github.com/google/jsonapi v1.0.0 // indirect
37+
github.com/google/uuid v1.1.2 // indirect
38+
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
39+
github.com/hashicorp/errwrap v1.0.0 // indirect
40+
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
41+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
42+
github.com/hashicorp/go-getter v1.5.3 // indirect
43+
github.com/hashicorp/go-hclog v0.16.1 // indirect
44+
github.com/hashicorp/go-multierror v1.1.1 // indirect
45+
github.com/hashicorp/go-plugin v1.4.1 // indirect
46+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
47+
github.com/hashicorp/go-uuid v1.0.2 // indirect
48+
github.com/hashicorp/go-version v1.3.0 // indirect
49+
github.com/hashicorp/hc-install v0.3.1 // indirect
50+
github.com/hashicorp/hcl/v2 v2.8.2 // indirect
51+
github.com/hashicorp/logutils v1.0.0 // indirect
52+
github.com/hashicorp/terraform-exec v0.15.0 // indirect
53+
github.com/hashicorp/terraform-json v0.13.0 // indirect
54+
github.com/hashicorp/terraform-plugin-go v0.5.0 // indirect
55+
github.com/hashicorp/terraform-plugin-log v0.2.0 // indirect
56+
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect
57+
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
58+
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
59+
github.com/huandu/xstrings v1.3.2 // indirect
60+
github.com/imdario/mergo v0.3.12 // indirect
61+
github.com/jmespath/go-jmespath v0.4.0 // indirect
62+
github.com/jstemmer/go-junit-report v0.9.1 // indirect
63+
github.com/klauspost/compress v1.11.2 // indirect
64+
github.com/mattn/go-colorable v0.1.8 // indirect
65+
github.com/mattn/go-isatty v0.0.12 // indirect
66+
github.com/mitchellh/cli v1.1.2 // indirect
67+
github.com/mitchellh/copystructure v1.2.0 // indirect
68+
github.com/mitchellh/go-homedir v1.1.0 // indirect
69+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
70+
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
71+
github.com/mitchellh/mapstructure v1.4.3 // indirect
72+
github.com/mitchellh/reflectwalk v1.0.2 // indirect
73+
github.com/oklog/run v1.0.0 // indirect
74+
github.com/peterhellberg/link v1.1.0 // indirect
75+
github.com/pmezard/go-difflib v1.0.0 // indirect
76+
github.com/posener/complete v1.2.1 // indirect
77+
github.com/russross/blackfriday v1.6.0 // indirect
78+
github.com/ulikunitz/xz v0.5.8 // indirect
79+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
80+
github.com/zclconf/go-cty v1.9.1 // indirect
81+
go.opencensus.io v0.22.4 // indirect
82+
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
83+
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
84+
golang.org/x/mod v0.5.1 // indirect
85+
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
86+
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect
87+
golang.org/x/text v0.3.7 // indirect
88+
golang.org/x/tools v0.1.8 // indirect
89+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
90+
google.golang.org/api v0.34.0 // indirect
91+
google.golang.org/appengine v1.6.6 // indirect
92+
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d // indirect
93+
google.golang.org/grpc v1.32.0 // indirect
94+
google.golang.org/protobuf v1.25.0 // indirect
95+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
96+
)

vendor/cloud.google.com/go/go.mod

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)