mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-10 04:21:33 +00:00
Fix commitShaRev regex for some more complicated packages
Example "version" string this fixes: v0.5.0-alpha.5.0.20200819165624-17cef6e3e9d5
This commit is contained in:
parent
25d7fc13aa
commit
19394d538e
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func parseGoSum(file string) (map[string]string, error) {
|
||||
commitShaRev := regexp.MustCompile(`^v\d+\.\d+\.\d+-(?:\d+\.)?[0-9]{14}-(.*?)$`)
|
||||
commitShaRev := regexp.MustCompile(`v\d+\.\d+\.\d+-[\d+\.a-zA-Z]*?[0-9]{14}-(.*?)$`)
|
||||
|
||||
// Read go.mod
|
||||
data, err := ioutil.ReadFile(file)
|
||||
|
|
Loading…
Reference in a new issue