Skip to content

Commit dad6a3e

Browse files
committed
go.mod: mass update modules
Maintenance task: let's update all modules. Signed-off-by: Giedrius Statkevičius <[email protected]>
1 parent efc6eee commit dad6a3e

File tree

10 files changed

+478
-487
lines changed

10 files changed

+478
-487
lines changed

cmd/thanos/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"runtime/debug"
1616
"syscall"
1717

18+
"github.com/alecthomas/kingpin/v2"
1819
"github.com/go-kit/log"
1920
"github.com/go-kit/log/level"
2021
"github.com/oklog/run"
@@ -25,7 +26,6 @@ import (
2526
versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
2627
"github.com/prometheus/common/version"
2728
"go.uber.org/automaxprocs/maxprocs"
28-
"gopkg.in/alecthomas/kingpin.v2"
2929

3030
"github.com/thanos-io/thanos/pkg/extkingpin"
3131
"github.com/thanos-io/thanos/pkg/logging"

go.mod

Lines changed: 141 additions & 148 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 328 additions & 330 deletions
Large diffs are not rendered by default.

pkg/extflag/hidden.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package extflag
55

66
import (
7-
"gopkg.in/alecthomas/kingpin.v2"
7+
"github.com/alecthomas/kingpin/v2"
88
)
99

1010
type FlagClause interface {

pkg/extkingpin/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
"sort"
1010
"text/template"
1111

12+
"github.com/alecthomas/kingpin/v2"
1213
"github.com/go-kit/log"
1314
"github.com/oklog/run"
1415
"github.com/opentracing/opentracing-go"
1516
"github.com/pkg/errors"
1617
"github.com/prometheus/client_golang/prometheus"
17-
"gopkg.in/alecthomas/kingpin.v2"
1818
)
1919

2020
const UsageTemplate = `{{define "FormatCommand"}}\

pkg/extkingpin/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"fmt"
88
"strings"
99

10+
"github.com/alecthomas/kingpin/v2"
1011
extflag "github.com/efficientgo/tools/extkingpin"
1112
"github.com/pkg/errors"
1213
"github.com/prometheus/common/model"
13-
"gopkg.in/alecthomas/kingpin.v2"
1414
)
1515

1616
func ModelDuration(flags *kingpin.FlagClause) *model.Duration {

pkg/model/timeduration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ package model
66
import (
77
"time"
88

9+
"github.com/alecthomas/kingpin/v2"
910
"github.com/prometheus/common/model"
1011
"github.com/prometheus/prometheus/model/timestamp"
11-
"gopkg.in/alecthomas/kingpin.v2"
1212
)
1313

1414
// TimeOrDurationValue is a custom kingping parser for time in RFC3339

pkg/model/timeduration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10+
"github.com/alecthomas/kingpin/v2"
1011
"github.com/prometheus/prometheus/model/timestamp"
11-
"gopkg.in/alecthomas/kingpin.v2"
1212

1313
"github.com/efficientgo/core/testutil"
1414
"github.com/thanos-io/thanos/pkg/model"

pkg/tenancy/tenancy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func EnforceQueryTenancy(tenantLabel string, tenant string, query string) (strin
147147
Value: tenant,
148148
}
149149

150-
e := injectproxy.NewEnforcer(false, labelMatcher)
150+
e := injectproxy.NewPromQLEnforcer(false, labelMatcher)
151151

152152
expr, err := extpromql.ParseExpr(query)
153153
if err != nil {
@@ -185,7 +185,7 @@ func getLabelMatchers(formMatchers []string, tenant string, enforceTenancy bool,
185185
}
186186

187187
if enforceTenancy {
188-
e := injectproxy.NewEnforcer(false, tenantLabelMatcher)
188+
e := injectproxy.NewPromQLEnforcer(false, tenantLabelMatcher)
189189
matchers, err = e.EnforceMatchers(matchers)
190190
if err != nil {
191191
return nil, err

scripts/cfggen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"reflect"
1212
"strings"
1313

14+
"github.com/alecthomas/kingpin/v2"
1415
"github.com/fatih/structtag"
1516
"github.com/go-kit/log"
1617
"github.com/go-kit/log/level"
@@ -24,7 +25,6 @@ import (
2425
"github.com/thanos-io/objstore/providers/oss"
2526
"github.com/thanos-io/objstore/providers/s3"
2627
"github.com/thanos-io/objstore/providers/swift"
27-
"gopkg.in/alecthomas/kingpin.v2"
2828
"gopkg.in/yaml.v2"
2929

3030
"github.com/thanos-io/thanos/pkg/alert"

0 commit comments

Comments
 (0)