Skip to content

Commit

Permalink
Test and lint against Go 1.19
Browse files Browse the repository at this point in the history
Add Go 1.19 to the test matrix, and switch linting to Go 1.19 since we
prefer to lint with the latest stable release.

With Go 1.19, we need to:

- Update tools dependencies
- Fix any use of ioutil
- gofmt all files to match new godoc format
  • Loading branch information
abhinav committed Aug 12, 2022
1 parent aa8f15f commit 7476416
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 189 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17.x", "1.18.x"]
go: ["1.17.x", "1.18.x", "1.19.x"]
include:
- go: 1.18.x
- go: 1.19.x
latest: true

steps:
Expand Down
3 changes: 1 addition & 2 deletions appendinvoke_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package multierr_test

import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
Expand All @@ -37,7 +36,7 @@ func ExampleAppendInvoke() {
}

func run() (err error) {
dir, err := ioutil.TempDir("", "multierr")
dir, err := os.MkdirTemp("", "multierr")
// We create a temporary directory and defer its deletion when this
// function returns.
//
Expand Down
Loading

0 comments on commit 7476416

Please sign in to comment.