Skip to content

Commit d6b1e16

Browse files
authored
Merge pull request #6 from pub-solar/f/ci
chore: bump go to 1.20, go mod tidy
2 parents 09c2a71 + 13e7538 commit d6b1e16

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
1515
with:
16-
go-version: '>=1.18.0'
16+
go-version-file: 'go.mod'
1717

1818
- name: Lint
1919
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Currently only supports maintaining DNS Zones and Records.
55
- [Provider documentation](https://registry.terraform.io/providers/pub-solar/hostingde/latest/docs)
66

77
### Environment variables for provider configuration
8-
- Required: `HOSTINGDE_AUTH_TOKEN`, go to your [hosting.de profile](https://secure.hosting.de/profile) and create an API Key
8+
- Required: `HOSTINGDE_AUTH_TOKEN`, go to your [hosting.de profile](https://secure.hosting.de/profile) and create an API Key (token)
99
- Optional: `HOSTINGDE_ACCOUNT_ID`
1010

1111
### Quick start
1212
Copy the example `main.tf`, then run the following commands:
1313

1414
```shell
15-
export HOSTINGDE_AUTH_TOKEN=your-token
15+
export HOSTINGDE_AUTH_TOKEN=your-api-token
1616
```
1717
```shell
1818
terraform init

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pub-solar/terraform-provider-hostingde
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
github.com/hashicorp/terraform-plugin-docs v0.14.1

hostingde/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"encoding/json"
88
"errors"
99
"fmt"
10-
"io/ioutil"
10+
"io"
1111
"net/http"
1212
"strings"
1313
"time"
@@ -72,7 +72,7 @@ func (c *Client) doRequestIter(httpMethod string, uri string, request Request, r
7272

7373
defer resp.Body.Close()
7474

75-
body, err := ioutil.ReadAll(resp.Body)
75+
body, err := io.ReadAll(resp.Body)
7676
if err != nil {
7777
return nil, errors.New(toErrorWithNewlines(uri, body))
7878
}

0 commit comments

Comments
 (0)