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:
Emil Tullstedt
2022-10-13 14:53:51 +02:00
committed by GitHub
parent 9e70696f09
commit 656e270bd9
152 changed files with 377 additions and 347 deletions
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"testing"
"time"
@@ -3,7 +3,7 @@ package alerting
import (
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"regexp"
"testing"
@@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"regexp"
"strings"
@@ -3,7 +3,7 @@ package alerting
import (
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"testing"
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"mime/multipart"
"net"
"net/http"
@@ -928,6 +928,7 @@ func newMockNotificationChannel(t *testing.T, grafanaListedAddr string) *mockNot
require.NoError(t, err)
nc := &mockNotificationChannel{
//nolint:gosec
server: &http.Server{
Addr: listener.Addr().String(),
},
@@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"sort"
"testing"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"testing"
"time"
+1 -1
View File
@@ -3,7 +3,7 @@ package alerting
import (
"bytes"
"io"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"testing"
@@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"net/url"
"os"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil" //nolint:staticcheck // No need to change in v8.
"net/http"
"path/filepath"
"testing"