Skip to content

Commit b99703a

Browse files
authored
#minor: change ID computing mechanism (#8)
1 parent a491155 commit b99703a

File tree

11 files changed

+1226
-157
lines changed

11 files changed

+1226
-157
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
- name: Unshallow
1616
run: git fetch --prune --unshallow
17-
- id: vars
18-
run: |
19-
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
20-
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
2117
- name: Install Go
22-
uses: actions/setup-go@v2
23-
with:
24-
go-version: ${{ steps.vars.outputs.go_version }}
18+
uses: actions/setup-go@v3
2519
- name: Import GPG key
2620
id: import_gpg
2721
uses: paultyng/ghaction-import-gpg@v2.1.0
2822
env:
2923
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3024
PASSPHRASE: ${{ secrets.PASSPHRASE }}
3125
- name: Run GoReleaser
32-
uses: goreleaser/goreleaser-action@v2
26+
uses: goreleaser/goreleaser-action@v3
3327
with:
3428
version: latest
3529
args: release --rm-dist

.github/workflows/tag.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
outputs:
1010
tag: ${{ steps.tagging.outputs.new_tag }}
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: '0'
1515
- name: Bump version and push tag
16-
uses: anothrNick/github-tag-action@1.26.0
16+
uses: anothrNick/github-tag-action@1.61.0
1717
id: tagging
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10-
- id: vars
11-
run: |
12-
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
13-
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
1410
- name: Install Go
15-
uses: actions/setup-go@v2
16-
with:
17-
go-version: ${{ steps.vars.outputs.go_version }}
11+
uses: actions/setup-go@v3
1812
- name: Checkout code
19-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
2014
- name: Test
2115
env:
2216
TF_ACC: 1
@@ -28,8 +22,6 @@ jobs:
2822
golangci-lint:
2923
runs-on: ubuntu-latest
3024
steps:
31-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
3226
- name: golangci-lint
33-
uses: golangci/golangci-lint-action@v2
34-
with:
35-
version: v1.37.1
27+
uses: golangci/golangci-lint-action@v3

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.terraform/
22
*tfstate*
33
terraform-provider-mcbroken
4-
*.log
4+
*.log
5+
.terraform.lock.hcl

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PROVIDER_NAME=mcbroken
33
PROVIDER_FULL_PATH=$(REGISTRY)/$(NAMESPACE)/$(PROVIDER_NAME)
44
PROVIDER_FULL_NAME=terraform-provider-$(PROVIDER_NAME)
55
PROJECT=$(NAMESPACE)/$(PROVIDER_FULL_NAME)
6-
VERSION=0.1.3
6+
VERSION=$(shell git describe --abbrev=0 --tags | sed 's/v//')
77

88
build-mac: PLUGIN_DIR = ~/.terraform.d/plugins/local/provider/$(PROVIDER_NAME)/$(VERSION)/darwin_amd64
99
build-mac:

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ terraform apply
167167

168168
![alt text](https://media.giphy.com/media/4cuyucPeVWbNS/giphy.gif)
169169

170-
171170
## FAQ
172171

173172
### Is this based on ice cream machines or ice machines? What is the difference?

go.mod

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,16 @@ go 1.15
44

55
require (
66
github.com/agext/levenshtein v1.2.3 // indirect
7-
github.com/fatih/color v1.13.0 // indirect
7+
github.com/fatih/color v1.15.0 // indirect
88
github.com/hashicorp/errwrap v1.1.0 // indirect
9-
github.com/hashicorp/go-hclog v0.16.2 // indirect
10-
github.com/hashicorp/go-multierror v1.1.1 // indirect
11-
github.com/hashicorp/go-plugin v1.4.3 // indirect
12-
github.com/hashicorp/go-uuid v1.0.2 // indirect
13-
github.com/hashicorp/hcl/v2 v2.10.1 // indirect
14-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.8.0
15-
github.com/hashicorp/yamux v0.0.0-20210826001029-26ff87cf9493 // indirect
16-
github.com/mattn/go-colorable v0.1.11 // indirect
17-
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
9+
github.com/hashicorp/go-hclog v1.5.0 // indirect
10+
github.com/hashicorp/terraform-plugin-go v0.15.0 // indirect
11+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
12+
github.com/hashicorp/terraform-svchost v0.1.0 // indirect
13+
github.com/hashicorp/yamux v0.1.1 // indirect
14+
github.com/mattn/go-isatty v0.0.18 // indirect
1815
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
19-
github.com/mitchellh/mapstructure v1.4.2 // indirect
2016
github.com/oklog/run v1.1.0 // indirect
21-
github.com/zclconf/go-cty v1.9.1 // indirect
22-
golang.org/x/net v0.0.0-20210929161516-d455829e376d // indirect
23-
golang.org/x/text v0.3.7 // indirect
24-
google.golang.org/appengine v1.6.7 // indirect
25-
google.golang.org/genproto v0.0.0-20210928142010-c7af6a1a74c9 // indirect
26-
google.golang.org/grpc v1.41.0 // indirect
17+
golang.org/x/net v0.9.0 // indirect
18+
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
2719
)

0 commit comments

Comments
 (0)