From fa28970dfaebc885053586cf62548f9ee27268b9 Mon Sep 17 00:00:00 2001 From: Angie Song Date: Fri, 22 Mar 2024 16:38:51 -0700 Subject: [PATCH] chore: bump version `0.2.7` -> `0.2.8` --- .manifest.json | 4 ++-- README.md | 10 +++++----- examples/provider/main.tf | 2 +- internal/provider/provider.go | 5 ++++- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.manifest.json b/.manifest.json index 64595ee..c33d8a2 100644 --- a/.manifest.json +++ b/.manifest.json @@ -50,7 +50,7 @@ "mockAcceptance": true, "providerGoModuleName": "abbey/v2", "providerName": "abbey", - "providerVersion": "0.2.7", + "providerVersion": "0.2.8", "githubRepoName": "terraform-provider-abbey" } }, @@ -78,7 +78,7 @@ }, "providerGoModuleName": "abbey/v2", "providerName": "abbey", - "providerVersion": "0.2.7", + "providerVersion": "0.2.8", "mockAcceptance": true, "hideComputedDiff": false }, diff --git a/README.md b/README.md index d0d1146..13d3a38 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# abbey Terraform Provider 0.2.7 +# abbey Terraform Provider 0.2.8 The public Abbey API. Used for integrating with Abbey and building interfaces to extend the Abbey platform. See https://docs.abbey.io for more information. This repository contains a Terraform provider that allows you to manage resources through the abbey API. @@ -40,11 +40,11 @@ go build -o terraform-provider-abbey 5. Move the provider to your plugins directory: ```bash -mkdir -p ~/.terraform.d/plugins/example.com/user/abbey/0.2.7/ -mv terraform-provider-abbey ~/.terraform.d/plugins/example.com/user/abbey/0.2.7/ +mkdir -p ~/.terraform.d/plugins/example.com/user/abbey/0.2.8/ +mv terraform-provider-abbey ~/.terraform.d/plugins/example.com/user/abbey/0.2.8/ ``` -Note: The directory structure is important. The provider must be located at `~/.terraform.d/plugins/example.com/user/abbey/0.2.7//terraform-provider-abbey` +Note: The directory structure is important. The provider must be located at `~/.terraform.d/plugins/example.com/user/abbey/0.2.8//terraform-provider-abbey` Also please change `example.com/user` and `` to match your real values. To get the run `terraform version`, possible values: `linux_amd64`, `darwin_arm64`, `windows_amd64`, etc. @@ -120,7 +120,7 @@ make acceptance-test 1. Tag your release: ```bash -git tag v0.2.7 +git tag v0.2.8 git push --tags ``` diff --git a/examples/provider/main.tf b/examples/provider/main.tf index fdd861d..a300a51 100644 --- a/examples/provider/main.tf +++ b/examples/provider/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { abbey = { source = "hashicorp.com/edu/abbey" - version = "0.2.7" + version = "0.2.8" } } } diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 557903a..4bd8ab5 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -22,6 +22,9 @@ import ( var _ provider.Provider = &Provider{} type Provider struct { + // version is set to the provider version on release, "dev" when the + // provider is built and ran locally, and "test" when running acceptance + // testing. version string } @@ -32,7 +35,7 @@ type abbeyProviderModel struct { func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { resp.TypeName = "abbey" - resp.Version = "0.2.7" + resp.Version = p.version } func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {