Skip to content

Commit

Permalink
Upgrade to blang/semver/v4 v4.0.0
Browse files Browse the repository at this point in the history
This is the first version to be fully go-mod-compatible.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
  • Loading branch information
skitt committed Mar 28, 2022
1 parent 2cb3c7f commit 080c6c7
Show file tree
Hide file tree
Showing 52 changed files with 51 additions and 1,248 deletions.
26 changes: 0 additions & 26 deletions LICENSES/vendor/github.com/blang/semver/LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSES/vendor/github.com/blang/semver/v4/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cluster/images/etcd/migrate/data_dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"path/filepath"
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cluster/images/etcd/migrate/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"testing"
"time"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"k8s.io/klog/v2"
netutils "k8s.io/utils/net"
)
Expand Down
2 changes: 1 addition & 1 deletion cluster/images/etcd/migrate/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"time"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cluster/images/etcd/migrate/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/blang/semver"
"github.com/blang/semver/v4"
)

// EtcdVersion specifies an etcd server binaries SemVer.
Expand Down
2 changes: 1 addition & 1 deletion cluster/images/etcd/migrate/versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package main
import (
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
)

func TestSerializeEtcdVersionPair(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/auth0/go-jwt-middleware v1.0.1 // indirect
github.com/aws/aws-sdk-go v1.38.49
github.com/blang/semver v3.5.1+incompatible
github.com/blang/semver/v4 v4.0.0
github.com/boltdb/bolt v1.3.1 // indirect
github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
github.com/container-storage-interface/spec v1.5.0
Expand Down
4 changes: 2 additions & 2 deletions staging/src/k8s.io/apiextensions-apiserver/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions staging/src/k8s.io/apiserver/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions staging/src/k8s.io/cloud-provider/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module k8s.io/component-base
go 1.16

require (
github.com/blang/semver v3.5.1+incompatible
github.com/blang/semver/v4 v4.0.0
github.com/go-logr/logr v1.2.0
github.com/go-logr/zapr v1.2.0
github.com/google/go-cmp v0.5.5
Expand Down
4 changes: 2 additions & 2 deletions staging/src/k8s.io/component-base/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package metrics
import (
"fmt"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package metrics

import (
"context"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
)
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"bytes"
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/common/expfmt"
"github.com/stretchr/testify/assert"

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/desc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"sync"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"

"k8s.io/klog/v2"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package metrics

import (
"context"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"

"k8s.io/component-base/version"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/gauge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/stretchr/testify/assert"

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package metrics

import (
"context"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package metrics
import (
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/assert"

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package metrics
import (
"sync"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"regexp"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/spf13/pflag"

"k8s.io/component-base/version"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sync"
"sync/atomic"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sync"
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package metrics

import (
"context"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/component-base/metrics/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package metrics
import (
"testing"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/stretchr/testify/assert"

apimachineryversion "k8s.io/apimachinery/pkg/version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"regexp"

"github.com/blang/semver"
"github.com/blang/semver/v4"

apimachineryversion "k8s.io/apimachinery/pkg/version"
)
Expand Down
4 changes: 2 additions & 2 deletions staging/src/k8s.io/controller-manager/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions staging/src/k8s.io/kube-aggregator/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/kube-controller-manager/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/kube-proxy/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/kube-scheduler/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/kubectl/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/kubelet/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion staging/src/k8s.io/legacy-cloud-providers/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect
github.com/GoogleCloudPlatform/k8s-cloud-provider v1.16.1-0.20210702024009-ea6160c1d0e3
github.com/aws/aws-sdk-go v1.38.49
github.com/blang/semver v3.5.1+incompatible
github.com/blang/semver/v4 v4.0.0
github.com/dnaeon/go-vcr v1.0.1 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/golang/mock v1.5.0
Expand Down
4 changes: 2 additions & 2 deletions staging/src/k8s.io/legacy-cloud-providers/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"regexp"
"strings"

"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/vim25/soap"
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/pod-security-admission/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module k8s.io/pod-security-admission
go 1.16

require (
github.com/blang/semver v3.5.1+incompatible
github.com/blang/semver/v4 v4.0.0
github.com/google/go-cmp v0.5.5
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions staging/src/k8s.io/pod-security-admission/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strings"
"sync"

"github.com/blang/semver"
"github.com/blang/semver/v4"
admissionv1 "k8s.io/api/admission/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
Loading

0 comments on commit 080c6c7

Please sign in to comment.