mirror of
https://github.com/containers/skopeo.git
synced 2025-09-07 09:40:55 +00:00
fix(deps): update module github.com/masterminds/semver/v3 to v3.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Lokesh Mandvekar
parent
0d16d65dc5
commit
229c9fadc1
2
go.mod
2
go.mod
@@ -6,7 +6,7 @@ go 1.21.0
|
|||||||
// Warning: Ensure the "go" and "toolchain" versions match exactly to prevent unwanted auto-updates
|
// Warning: Ensure the "go" and "toolchain" versions match exactly to prevent unwanted auto-updates
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Masterminds/semver/v3 v3.2.1
|
github.com/Masterminds/semver/v3 v3.3.0
|
||||||
github.com/containers/common v0.60.2
|
github.com/containers/common v0.60.2
|
||||||
github.com/containers/image/v5 v5.32.2
|
github.com/containers/image/v5 v5.32.2
|
||||||
github.com/containers/ocicrypt v1.2.0
|
github.com/containers/ocicrypt v1.2.0
|
||||||
|
4
go.sum
4
go.sum
@@ -8,8 +8,8 @@ github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg6
|
|||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
||||||
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||||
github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
|
github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0=
|
||||||
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
|
github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
|
||||||
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
||||||
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
||||||
github.com/Microsoft/hcsshim v0.12.5 h1:bpTInLlDy/nDRWFVcefDZZ1+U8tS+rz3MxjKgu9boo0=
|
github.com/Microsoft/hcsshim v0.12.5 h1:bpTInLlDy/nDRWFVcefDZZ1+U8tS+rz3MxjKgu9boo0=
|
||||||
|
28
vendor/github.com/Masterminds/semver/v3/CHANGELOG.md
generated
vendored
28
vendor/github.com/Masterminds/semver/v3/CHANGELOG.md
generated
vendored
@@ -1,5 +1,33 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 3.3.0 (2024-08-27)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- #238: Add LessThanEqual and GreaterThanEqual functions (thanks @grosser)
|
||||||
|
- #213: nil version equality checking (thanks @KnutZuidema)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- #241: Simplify StrictNewVersion parsing (thanks @grosser)
|
||||||
|
- Testing support up through Go 1.23
|
||||||
|
- Minimum version set to 1.21 as this is what's tested now
|
||||||
|
- Fuzz testing now supports caching
|
||||||
|
|
||||||
|
## 3.2.1 (2023-04-10)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- #198: Improved testing around pre-release names
|
||||||
|
- #200: Improved code scanning with addition of CodeQL
|
||||||
|
- #201: Testing now includes Go 1.20. Go 1.17 has been dropped
|
||||||
|
- #202: Migrated Fuzz testing to Go built-in Fuzzing. CI runs daily
|
||||||
|
- #203: Docs updated for security details
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- #199: Fixed issue with range transformations
|
||||||
|
|
||||||
## 3.2.0 (2022-11-28)
|
## 3.2.0 (2022-11-28)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
3
vendor/github.com/Masterminds/semver/v3/Makefile
generated
vendored
3
vendor/github.com/Masterminds/semver/v3/Makefile
generated
vendored
@@ -19,6 +19,7 @@ test-cover:
|
|||||||
.PHONY: fuzz
|
.PHONY: fuzz
|
||||||
fuzz:
|
fuzz:
|
||||||
@echo "==> Running Fuzz Tests"
|
@echo "==> Running Fuzz Tests"
|
||||||
|
go env GOCACHE
|
||||||
go test -fuzz=FuzzNewVersion -fuzztime=15s .
|
go test -fuzz=FuzzNewVersion -fuzztime=15s .
|
||||||
go test -fuzz=FuzzStrictNewVersion -fuzztime=15s .
|
go test -fuzz=FuzzStrictNewVersion -fuzztime=15s .
|
||||||
go test -fuzz=FuzzNewConstraint -fuzztime=15s .
|
go test -fuzz=FuzzNewConstraint -fuzztime=15s .
|
||||||
@@ -27,4 +28,4 @@ $(GOLANGCI_LINT):
|
|||||||
# Install golangci-lint. The configuration for it is in the .golangci.yml
|
# Install golangci-lint. The configuration for it is in the .golangci.yml
|
||||||
# file in the root of the repository
|
# file in the root of the repository
|
||||||
echo ${GOPATH}
|
echo ${GOPATH}
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.56.2
|
||||||
|
28
vendor/github.com/Masterminds/semver/v3/README.md
generated
vendored
28
vendor/github.com/Masterminds/semver/v3/README.md
generated
vendored
@@ -13,12 +13,9 @@ Active](https://masterminds.github.io/stability/active.svg)](https://masterminds
|
|||||||
[](https://pkg.go.dev/github.com/Masterminds/semver/v3)
|
[](https://pkg.go.dev/github.com/Masterminds/semver/v3)
|
||||||
[](https://goreportcard.com/report/github.com/Masterminds/semver)
|
[](https://goreportcard.com/report/github.com/Masterminds/semver)
|
||||||
|
|
||||||
If you are looking for a command line tool for version comparisons please see
|
|
||||||
[vert](https://github.com/Masterminds/vert) which uses this library.
|
|
||||||
|
|
||||||
## Package Versions
|
## Package Versions
|
||||||
|
|
||||||
Note, import `github.com/github.com/Masterminds/semver/v3` to use the latest version.
|
Note, import `github.com/Masterminds/semver/v3` to use the latest version.
|
||||||
|
|
||||||
There are three major versions fo the `semver` package.
|
There are three major versions fo the `semver` package.
|
||||||
|
|
||||||
@@ -80,12 +77,12 @@ There are two methods for comparing versions. One uses comparison methods on
|
|||||||
differences to notes between these two methods of comparison.
|
differences to notes between these two methods of comparison.
|
||||||
|
|
||||||
1. When two versions are compared using functions such as `Compare`, `LessThan`,
|
1. When two versions are compared using functions such as `Compare`, `LessThan`,
|
||||||
and others it will follow the specification and always include prereleases
|
and others it will follow the specification and always include pre-releases
|
||||||
within the comparison. It will provide an answer that is valid with the
|
within the comparison. It will provide an answer that is valid with the
|
||||||
comparison section of the spec at https://semver.org/#spec-item-11
|
comparison section of the spec at https://semver.org/#spec-item-11
|
||||||
2. When constraint checking is used for checks or validation it will follow a
|
2. When constraint checking is used for checks or validation it will follow a
|
||||||
different set of rules that are common for ranges with tools like npm/js
|
different set of rules that are common for ranges with tools like npm/js
|
||||||
and Rust/Cargo. This includes considering prereleases to be invalid if the
|
and Rust/Cargo. This includes considering pre-releases to be invalid if the
|
||||||
ranges does not include one. If you want to have it include pre-releases a
|
ranges does not include one. If you want to have it include pre-releases a
|
||||||
simple solution is to include `-0` in your range.
|
simple solution is to include `-0` in your range.
|
||||||
3. Constraint ranges can have some complex rules including the shorthand use of
|
3. Constraint ranges can have some complex rules including the shorthand use of
|
||||||
@@ -113,7 +110,7 @@ v, err := semver.NewVersion("1.3")
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// Handle version not being parsable.
|
// Handle version not being parsable.
|
||||||
}
|
}
|
||||||
// Check if the version meets the constraints. The a variable will be true.
|
// Check if the version meets the constraints. The variable a will be true.
|
||||||
a := c.Check(v)
|
a := c.Check(v)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -137,20 +134,20 @@ The basic comparisons are:
|
|||||||
### Working With Prerelease Versions
|
### Working With Prerelease Versions
|
||||||
|
|
||||||
Pre-releases, for those not familiar with them, are used for software releases
|
Pre-releases, for those not familiar with them, are used for software releases
|
||||||
prior to stable or generally available releases. Examples of prereleases include
|
prior to stable or generally available releases. Examples of pre-releases include
|
||||||
development, alpha, beta, and release candidate releases. A prerelease may be
|
development, alpha, beta, and release candidate releases. A pre-release may be
|
||||||
a version such as `1.2.3-beta.1` while the stable release would be `1.2.3`. In the
|
a version such as `1.2.3-beta.1` while the stable release would be `1.2.3`. In the
|
||||||
order of precedence, prereleases come before their associated releases. In this
|
order of precedence, pre-releases come before their associated releases. In this
|
||||||
example `1.2.3-beta.1 < 1.2.3`.
|
example `1.2.3-beta.1 < 1.2.3`.
|
||||||
|
|
||||||
According to the Semantic Version specification prereleases may not be
|
According to the Semantic Version specification, pre-releases may not be
|
||||||
API compliant with their release counterpart. It says,
|
API compliant with their release counterpart. It says,
|
||||||
|
|
||||||
> A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version.
|
> A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version.
|
||||||
|
|
||||||
SemVer comparisons using constraints without a prerelease comparator will skip
|
SemVer's comparisons using constraints without a pre-release comparator will skip
|
||||||
prerelease versions. For example, `>=1.2.3` will skip prereleases when looking
|
pre-release versions. For example, `>=1.2.3` will skip pre-releases when looking
|
||||||
at a list of releases while `>=1.2.3-0` will evaluate and find prereleases.
|
at a list of releases while `>=1.2.3-0` will evaluate and find pre-releases.
|
||||||
|
|
||||||
The reason for the `0` as a pre-release version in the example comparison is
|
The reason for the `0` as a pre-release version in the example comparison is
|
||||||
because pre-releases can only contain ASCII alphanumerics and hyphens (along with
|
because pre-releases can only contain ASCII alphanumerics and hyphens (along with
|
||||||
@@ -171,6 +168,9 @@ These look like:
|
|||||||
* `1.2 - 1.4.5` which is equivalent to `>= 1.2 <= 1.4.5`
|
* `1.2 - 1.4.5` which is equivalent to `>= 1.2 <= 1.4.5`
|
||||||
* `2.3.4 - 4.5` which is equivalent to `>= 2.3.4 <= 4.5`
|
* `2.3.4 - 4.5` which is equivalent to `>= 2.3.4 <= 4.5`
|
||||||
|
|
||||||
|
Note that `1.2-1.4.5` without whitespace is parsed completely differently; it's
|
||||||
|
parsed as a single constraint `1.2.0` with _prerelease_ `1.4.5`.
|
||||||
|
|
||||||
### Wildcards In Comparisons
|
### Wildcards In Comparisons
|
||||||
|
|
||||||
The `x`, `X`, and `*` characters can be used as a wildcard character. This works
|
The `x`, `X`, and `*` characters can be used as a wildcard character. This works
|
||||||
|
64
vendor/github.com/Masterminds/semver/v3/version.go
generated
vendored
64
vendor/github.com/Masterminds/semver/v3/version.go
generated
vendored
@@ -83,22 +83,23 @@ func StrictNewVersion(v string) (*Version, error) {
|
|||||||
original: v,
|
original: v,
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for prerelease or build metadata
|
// Extract build metadata
|
||||||
var extra []string
|
if strings.Contains(parts[2], "+") {
|
||||||
if strings.ContainsAny(parts[2], "-+") {
|
extra := strings.SplitN(parts[2], "+", 2)
|
||||||
// Start with the build metadata first as it needs to be on the right
|
sv.metadata = extra[1]
|
||||||
extra = strings.SplitN(parts[2], "+", 2)
|
parts[2] = extra[0]
|
||||||
if len(extra) > 1 {
|
if err := validateMetadata(sv.metadata); err != nil {
|
||||||
// build metadata found
|
return nil, err
|
||||||
sv.metadata = extra[1]
|
|
||||||
parts[2] = extra[0]
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
extra = strings.SplitN(parts[2], "-", 2)
|
// Extract build prerelease
|
||||||
if len(extra) > 1 {
|
if strings.Contains(parts[2], "-") {
|
||||||
// prerelease found
|
extra := strings.SplitN(parts[2], "-", 2)
|
||||||
sv.pre = extra[1]
|
sv.pre = extra[1]
|
||||||
parts[2] = extra[0]
|
parts[2] = extra[0]
|
||||||
|
if err := validatePrerelease(sv.pre); err != nil {
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +115,7 @@ func StrictNewVersion(v string) (*Version, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract the major, minor, and patch elements onto the returned Version
|
// Extract major, minor, and patch
|
||||||
var err error
|
var err error
|
||||||
sv.major, err = strconv.ParseUint(parts[0], 10, 64)
|
sv.major, err = strconv.ParseUint(parts[0], 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -131,23 +132,6 @@ func StrictNewVersion(v string) (*Version, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// No prerelease or build metadata found so returning now as a fastpath.
|
|
||||||
if sv.pre == "" && sv.metadata == "" {
|
|
||||||
return sv, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if sv.pre != "" {
|
|
||||||
if err = validatePrerelease(sv.pre); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if sv.metadata != "" {
|
|
||||||
if err = validateMetadata(sv.metadata); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return sv, nil
|
return sv, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -381,15 +365,31 @@ func (v *Version) LessThan(o *Version) bool {
|
|||||||
return v.Compare(o) < 0
|
return v.Compare(o) < 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LessThanEqual tests if one version is less or equal than another one.
|
||||||
|
func (v *Version) LessThanEqual(o *Version) bool {
|
||||||
|
return v.Compare(o) <= 0
|
||||||
|
}
|
||||||
|
|
||||||
// GreaterThan tests if one version is greater than another one.
|
// GreaterThan tests if one version is greater than another one.
|
||||||
func (v *Version) GreaterThan(o *Version) bool {
|
func (v *Version) GreaterThan(o *Version) bool {
|
||||||
return v.Compare(o) > 0
|
return v.Compare(o) > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GreaterThanEqual tests if one version is greater or equal than another one.
|
||||||
|
func (v *Version) GreaterThanEqual(o *Version) bool {
|
||||||
|
return v.Compare(o) >= 0
|
||||||
|
}
|
||||||
|
|
||||||
// Equal tests if two versions are equal to each other.
|
// Equal tests if two versions are equal to each other.
|
||||||
// Note, versions can be equal with different metadata since metadata
|
// Note, versions can be equal with different metadata since metadata
|
||||||
// is not considered part of the comparable version.
|
// is not considered part of the comparable version.
|
||||||
func (v *Version) Equal(o *Version) bool {
|
func (v *Version) Equal(o *Version) bool {
|
||||||
|
if v == o {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if v == nil || o == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return v.Compare(o) == 0
|
return v.Compare(o) == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@@ -5,8 +5,8 @@ dario.cat/mergo
|
|||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/BurntSushi/toml
|
github.com/BurntSushi/toml
|
||||||
github.com/BurntSushi/toml/internal
|
github.com/BurntSushi/toml/internal
|
||||||
# github.com/Masterminds/semver/v3 v3.2.1
|
# github.com/Masterminds/semver/v3 v3.3.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.21
|
||||||
github.com/Masterminds/semver/v3
|
github.com/Masterminds/semver/v3
|
||||||
# github.com/Microsoft/go-winio v0.6.2
|
# github.com/Microsoft/go-winio v0.6.2
|
||||||
## explicit; go 1.21
|
## explicit; go 1.21
|
||||||
|
Reference in New Issue
Block a user