(zilch lang resolver): fix(?) parsing of "< 3" as version requirement

This commit is contained in:
puck 2024-11-27 14:26:02 +00:00
parent 8cc567a075
commit c68f3852e0

View file

@ -554,7 +554,7 @@
((1) (next-major parsed-version)))))))
; TODO: this implements the RFC 3493-style implicit prerelease stuff, I _think_
((<) (list (cons '< (exclude-prerelease parsed-version))))
((<=) (list (cons '<= parsed-version)))
((<=) (list (cons '< (first-incompatible parsed-version)))) ; TODO(puck): is this correct? how *should* "<= 3" be parsed.
((>) (list (cons '> parsed-version)))
((>=) (list (cons '>= parsed-version)))
((=) (list (cons '= parsed-version)))