-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package_managers: gomod: Allow pre-release IDs & comments in version …
…string Golang allows arbitrary pre-release version identifiers in version string, i.e. trying to parse the following in a go.mod file passes: # go.mod go 1.21.0foo458 $ go mod edit -json | jq .Go 1.21.0foo458 Golang also allows go.mod files to include commentaries on the version string line, i.e. the following passes the built-in parser: # go.mod go 1.21.0rc1//commentary go mod edit -json | jq .Go 1.21.rc1 This patches enhances our regex to support both. Signed-off-by: Erik Skultety <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters