Chore: Upgrade Go to 1.19.2 (#56857)
We also need to upgrade the linter together with the Go version, all the changes should relate to either fixing linting problems or upgrading the Go version used to build Grafana.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io/ioutil" //nolint:staticcheck // No need to change in v8.
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -84,6 +84,7 @@ func mergeSpecs(output string, sources ...string) error {
|
||||
return fmt.Errorf("failed to intend new spec: %w", err)
|
||||
}
|
||||
|
||||
//nolint:gosec
|
||||
f, err = os.Create(output)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create file for new spec: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user