diff options
author | 6543 <6543@obermui.de> | 2020-10-16 11:05:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 12:05:02 +0300 |
commit | b222dbc1d1df2559206ec1c27928d4666a48f0e8 (patch) | |
tree | 0be81e383820f91c2f7ed309cdcf7a1840920ed2 /vendor | |
parent | 12a1f914f443cc31af4bc54ab43802a75742cd57 (diff) | |
download | gitea-b222dbc1d1df2559206ec1c27928d4666a48f0e8.tar.gz gitea-b222dbc1d1df2559206ec1c27928d4666a48f0e8.zip |
Update go-version v1.2.3 -> v1.2.4 (#13169)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/hashicorp/go-version/README.md | 4 | ||||
-rw-r--r-- | vendor/github.com/hashicorp/go-version/go.mod | 2 | ||||
-rw-r--r-- | vendor/github.com/hashicorp/go-version/version.go | 12 | ||||
-rw-r--r-- | vendor/modules.txt | 4 |
4 files changed, 14 insertions, 8 deletions
diff --git a/vendor/github.com/hashicorp/go-version/README.md b/vendor/github.com/hashicorp/go-version/README.md index 851a337beb..e19e0a9afc 100644 --- a/vendor/github.com/hashicorp/go-version/README.md +++ b/vendor/github.com/hashicorp/go-version/README.md @@ -1,6 +1,6 @@ # Versioning Library for Go -[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/master.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/master) -[![GoDoc](https://godoc.org/github.com/hashicorp/go-version?status.svg)](https://godoc.org/github.com/hashicorp/go-version) +![Build Status](https://github.com/6543/go-version/workflows/Release/badge.svg) +[![GoDoc](https://godoc.org/github.com/6543/go-version?status.svg)](https://godoc.org/github.com/6543/go-version) go-version is a library for parsing versions and version constraints, and verifying versions against a set of constraints. go-version diff --git a/vendor/github.com/hashicorp/go-version/go.mod b/vendor/github.com/hashicorp/go-version/go.mod index f52ad8ac52..fb823e8f9e 100644 --- a/vendor/github.com/hashicorp/go-version/go.mod +++ b/vendor/github.com/hashicorp/go-version/go.mod @@ -1 +1,3 @@ module github.com/6543/go-version + +go 1.15 diff --git a/vendor/github.com/hashicorp/go-version/version.go b/vendor/github.com/hashicorp/go-version/version.go index 1d96a6f71b..3fb63ae802 100644 --- a/vendor/github.com/hashicorp/go-version/version.go +++ b/vendor/github.com/hashicorp/go-version/version.go @@ -18,10 +18,14 @@ var ( // The raw regular expression string used for testing the validity // of a version. const ( - 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}$)?` + + VersionRegexpRaw string = `[vV]?` + // Optional [vV] prefix + `([0-9]+(\.[0-9]+)*?)` + // ( MajorNum ( '.' MinorNums ) *? ) + `(-` + // Followed by (optionally): ( '-' + `([0-9]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)` + // Either ( PreNum String ( '.' OtherString ) * ) + `|` + + `([-\.]?([A-Za-z\-~]+[0-9A-Za-z\-~]*(\.[0-9A-Za-z\-~]+)*)))?` + // Or ( ['-' '.' ] ? ( AlphaHyphenTilde String * ( '.' String ) * ))) ? + `(\+([0-9A-Za-z\-~]+(\.[0-9A-Za-z\-~]+)*))?` + // and more Optionally: ( '+' String ( '.' String ) * ) + `([\+\.\-~]g[0-9A-Fa-f]{10}$)?` + // Optionally a: ( Punct 'g' Sha ) `?` // SemverRegexpRaw requires a separator between version and prerelease diff --git a/vendor/modules.txt b/vendor/modules.txt index e6a9e1d76f..5c58a018f8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -444,7 +444,7 @@ github.com/hashicorp/go-cleanhttp # github.com/hashicorp/go-retryablehttp v0.6.7 ## explicit github.com/hashicorp/go-retryablehttp -# github.com/hashicorp/go-version v1.2.1 => github.com/6543/go-version v1.2.3 +# github.com/hashicorp/go-version v1.2.1 => github.com/6543/go-version v1.2.4 ## explicit github.com/hashicorp/go-version # github.com/hashicorp/hcl v1.0.0 @@ -1002,4 +1002,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 +# github.com/hashicorp/go-version => github.com/6543/go-version v1.2.4 |