Infinite loop in Compare
electricface opened this issue · 0 comments
electricface commented
The following code can reproduce this bug:
package main
import (
"log"
debver "github.com/knqyf263/go-deb-version"
)
func main() {
from := "1.12+git+1+e37ca00-0.3"
to := "1.12+git+1+e37ca0"
verFrom, err := debver.NewVersion(from)
if err != nil {
log.Fatal(err)
}
verTo, err := debver.NewVersion(to)
if err != nil {
log.Fatalln(err)
}
result := verFrom.Compare(verTo)
log.Println(result)
}