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
+1 -2
View File
@@ -4,10 +4,9 @@ import (
"context"
"fmt"
"net/http"
"slices"
"strings"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/api/dtos"
"github.com/grafana/grafana/pkg/plugins"
"github.com/grafana/grafana/pkg/services/accesscontrol"
+1 -1
View File
@@ -4,13 +4,13 @@ import (
"errors"
"fmt"
"net/http"
"slices"
"testing"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/api/response"
)
+1 -1
View File
@@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"
"net/http"
"slices"
"strings"
"golang.org/x/exp/slices"
"golang.org/x/oauth2"
"github.com/grafana/grafana/pkg/services/featuremgmt"
+1 -1
View File
@@ -14,10 +14,10 @@ import (
"net/http"
"os"
"regexp"
"slices"
"strings"
"time"
"golang.org/x/exp/slices"
"golang.org/x/oauth2"
"golang.org/x/text/cases"
"golang.org/x/text/language"
+1 -1
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"
@@ -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"
+2 -1
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"
+1 -1
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"
@@ -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{}
+1 -2
View File
@@ -5,10 +5,9 @@ import (
"fmt"
"net/url"
"regexp"
"slices"
"strings"
"text/template"
"golang.org/x/exp/slices"
)
type query struct {
+1 -1
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"
@@ -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"
+1 -1
View File
@@ -5,11 +5,11 @@ import (
"encoding/json"
"fmt"
"regexp"
"slices"
"strconv"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"golang.org/x/exp/slices"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/infra/log"
-3
View File
@@ -1,6 +1,3 @@
//go:build go1.3
// +build go1.3
// Copyright 2014 The Macaron Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may