Skip to content

Commit 0c3c5ca

Browse files
authored
Block cross-package skips/replaces on add (#826)
* Block cross-package skips/replaces on add Signed-off-by: Ankita Thomas <[email protected]> * bump blang/semver to v4 Signed-off-by: Ankita Thomas <[email protected]>
1 parent b95ebb1 commit 0c3c5ca

File tree

20 files changed

+160
-19
lines changed

20 files changed

+160
-19
lines changed

alpha/action/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"io"
88

9-
"github.com/blang/semver"
9+
"github.com/blang/semver/v4"
1010
"github.com/sirupsen/logrus"
1111
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1212
"k8s.io/apimachinery/pkg/util/yaml"

alpha/action/diff_test.go

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

14-
"github.com/blang/semver"
14+
"github.com/blang/semver/v4"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/require"
1717

alpha/declcfg/declcfg_to_model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package declcfg
33
import (
44
"fmt"
55

6-
"github.com/blang/semver"
6+
"github.com/blang/semver/v4"
77
"k8s.io/apimachinery/pkg/util/sets"
88

99
"github.com/operator-framework/operator-registry/alpha/model"

alpha/declcfg/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sort"
77
"sync"
88

9-
"github.com/blang/semver"
9+
"github.com/blang/semver/v4"
1010
"github.com/mitchellh/hashstructure/v2"
1111
"github.com/sirupsen/logrus"
1212

alpha/declcfg/diff_include.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/blang/semver"
7+
"github.com/blang/semver/v4"
88
"github.com/sirupsen/logrus"
99
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1010

alpha/declcfg/diff_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package declcfg
33
import (
44
"testing"
55

6-
"github.com/blang/semver"
6+
"github.com/blang/semver/v4"
77
"github.com/stretchr/testify/require"
88

99
"github.com/operator-framework/operator-registry/alpha/model"

alpha/model/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sort"
77
"strings"
88

9-
"github.com/blang/semver"
9+
"github.com/blang/semver/v4"
1010
"github.com/h2non/filetype"
1111
"github.com/h2non/filetype/matchers"
1212
"github.com/h2non/filetype/types"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.16
44

55
require (
66
github.com/Microsoft/hcsshim v0.8.9 // indirect
7-
github.com/blang/semver v3.5.1+incompatible
7+
github.com/blang/semver/v4 v4.0.0
88
github.com/bugsnag/bugsnag-go v1.5.3 // indirect
99
github.com/bugsnag/panicwrap v1.2.0 // indirect
1010
github.com/containerd/containerd v1.4.11

pkg/lib/semver/semver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package semver
33
import (
44
"fmt"
55

6-
"github.com/blang/semver"
6+
"github.com/blang/semver/v4"
77
)
88

99
// BuildIdCompare compares two versions and returns negative one if the first arg is less than the second arg, positive one if it is larger, and zero if they are equal.

pkg/lib/semver/semver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package semver
33
import (
44
"testing"
55

6-
"github.com/blang/semver"
6+
"github.com/blang/semver/v4"
77
"github.com/stretchr/testify/require"
88
)
99

0 commit comments

Comments
 (0)