Chore: Upgrade Go to 1.21.3 (#77304)

This commit is contained in:
Ryan McKinley
2023-11-01 09:17:38 -07:00
committed by GitHub
parent 17a24c92e8
commit 5d5f8dfc52
29 changed files with 152 additions and 153 deletions

View File

@@ -4,13 +4,13 @@ import (
"context"
"fmt"
"net/http"
"slices"
"strconv"
"strings"
"time"
"github.com/go-jose/go-jose/v3"
"github.com/go-jose/go-jose/v3/jwt"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/authn"

View File

@@ -6,6 +6,7 @@ import (
"crypto/rsa"
"encoding/base64"
"fmt"
"slices"
"testing"
"time"
@@ -13,7 +14,6 @@ import (
"github.com/ory/fosite/storage"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/infra/localcache"
"github.com/grafana/grafana/pkg/infra/log"

View File

@@ -1,7 +1,8 @@
package grafanaapiserver
import (
"golang.org/x/exp/maps"
"maps"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
common "k8s.io/kube-openapi/pkg/common"
spec "k8s.io/kube-openapi/pkg/validation/spec"

View File

@@ -2,6 +2,7 @@ package notifier
import (
"context"
"slices"
"sort"
"strconv"
"sync"
@@ -12,7 +13,6 @@ import (
"github.com/prometheus/alertmanager/cluster"
"github.com/prometheus/alertmanager/cluster/clusterpb"
"github.com/prometheus/client_golang/prometheus"
"golang.org/x/exp/slices"
"github.com/redis/go-redis/v9"

View File

@@ -3,14 +3,15 @@ package historian
import (
"encoding/json"
"fmt"
"slices"
"strconv"
"strings"
"github.com/gogo/protobuf/proto"
"github.com/golang/snappy"
"github.com/grafana/grafana/pkg/components/loki/logproto"
"github.com/prometheus/common/model"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/components/loki/logproto"
)
type JsonEncoder struct{}

View File

@@ -5,10 +5,9 @@ import (
"fmt"
"net/url"
"regexp"
"slices"
"strings"
"text/template"
"golang.org/x/exp/slices"
)
type query struct {

View File

@@ -5,10 +5,10 @@ import (
"fmt"
"net/http"
"runtime"
"slices"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"
"github.com/grafana/grafana/pkg/api/dtos"

View File

@@ -3,10 +3,9 @@ package permissions
import (
"bytes"
"fmt"
"slices"
"strings"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/services/accesscontrol"
"github.com/grafana/grafana/pkg/services/auth/identity"
"github.com/grafana/grafana/pkg/services/dashboards"