[Vendor] Fix Version Compare Lib (#12735)
* switch to patched fork * vendor * reference upstream lib and use replace in go.mod * reference upstream lib and use replace in go.mod * Apply suggestions from code review * vendor Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
67ec27150e
commit
f10d3ea803
5 changed files with 10 additions and 6 deletions
2
vendor/github.com/hashicorp/go-version/go.mod
generated
vendored
2
vendor/github.com/hashicorp/go-version/go.mod
generated
vendored
|
@ -1 +1 @@
|
|||
module github.com/hashicorp/go-version
|
||||
module github.com/6543/go-version
|
||||
|
|
3
vendor/github.com/hashicorp/go-version/version.go
generated
vendored
3
vendor/github.com/hashicorp/go-version/version.go
generated
vendored
|
@ -18,9 +18,10 @@ var (
|
|||
// The raw regular expression string used for testing the validity
|
||||
// of a version.
|
||||
const (
|
||||
VersionRegexpRaw string = `v?([0-9]+(\.[0-9]+)*?)` +
|
||||
VersionRegexpRaw string = `[vV]?([0-9]+(\.[0-9]+)*?)` +
|
||||
`(-([0-9]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)|(-?([A-Za-z\-~]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)))?` +
|
||||
`(\+([0-9A-Za-z\-~]+(\.[0-9A-Za-z\-~]+)*))?` +
|
||||
`([\+\.\-~]g[0-9A-Fa-f]{10}$)?` +
|
||||
`?`
|
||||
|
||||
// SemverRegexpRaw requires a separator between version and prerelease
|
||||
|
|
3
vendor/modules.txt
vendored
3
vendor/modules.txt
vendored
|
@ -423,7 +423,7 @@ github.com/hashicorp/go-cleanhttp
|
|||
# github.com/hashicorp/go-retryablehttp v0.6.6
|
||||
## explicit
|
||||
github.com/hashicorp/go-retryablehttp
|
||||
# github.com/hashicorp/go-version v1.2.1
|
||||
# github.com/hashicorp/go-version v0.0.0-00010101000000-000000000000 => github.com/6543/go-version v1.2.3
|
||||
## explicit
|
||||
github.com/hashicorp/go-version
|
||||
# github.com/hashicorp/hcl v1.0.0
|
||||
|
@ -965,3 +965,4 @@ xorm.io/xorm/log
|
|||
xorm.io/xorm/names
|
||||
xorm.io/xorm/schemas
|
||||
xorm.io/xorm/tags
|
||||
# github.com/hashicorp/go-version => github.com/6543/go-version v1.2.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue