Chore: Replace usages of golang.org/x/net/context with stdlib context package (#105676)

This commit is contained in:
Matheus Macabu
2025-05-20 14:59:40 +02:00
committed by GitHub
parent 36c31ce841
commit 38de0cac3a
5 changed files with 6 additions and 7 deletions
@@ -1,10 +1,10 @@
package controller
import (
"context"
"sort"
"strings"
"golang.org/x/net/context"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
+1 -2
View File
@@ -1,10 +1,9 @@
package store
import (
"context"
"fmt"
"golang.org/x/net/context"
claims "github.com/grafana/authlib/types"
"github.com/grafana/grafana/pkg/infra/tracing"
@@ -1,7 +1,7 @@
package accesscontrol
import (
"golang.org/x/net/context"
"context"
"github.com/grafana/grafana/pkg/apimachinery/identity"
"github.com/grafana/grafana/pkg/services/accesscontrol"
+1 -2
View File
@@ -1,11 +1,10 @@
package accesscontrol
import (
"context"
"fmt"
"slices"
"golang.org/x/net/context"
"github.com/grafana/grafana/pkg/apimachinery/identity"
"github.com/grafana/grafana/pkg/expr"
"github.com/grafana/grafana/pkg/services/accesscontrol"
+2 -1
View File
@@ -1,7 +1,8 @@
package dualwrite
import (
"golang.org/x/net/context"
"context"
"k8s.io/apimachinery/pkg/runtime/schema"
dashboard "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v1beta1"