You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Erased version specification for dependency, converted to "" instead of ">0.0.0" #2901
I wonder if Version.minRelease shouldn't be "0.0.0-0" instead of just "0.0.0", as that is really the lowest representable version. Also, the condition for determining whether to add a ">" part and a "<" part during the string conversion seems a little bit off and I'd say they should include a || !m_inclusiveA / || !m_inclusiveB addition respectively.
Also, although is may be less likely to be a problem, Version.maxRelease ("99999.0.0") is completely arbitrary and doesn't seem like a meaningful constant.
Activity
WebFreak001 commentedon Apr 17, 2024
does it work if you change it to
"*"?The error probably appears because
>0.0.0is not a valid format, you probably meant>=0.0.0- however dub should show an issue for this.See https://dub.pm/dub-reference/dependencies/ for valid version syntaxes and what they mean.
p0nce commentedon Apr 18, 2024
It's not my package, and I think DUB should reject invalid version specifications.
Geod24 commentedon Jun 10, 2024
>0.0.0is a valid format, although slightly useless: https://devhints.io/semver@WebFreak001 looks like your documentation is incomplete, it does not include
>=1.0.0 <2.0.0for example.dub/source/dub/dependency.d
Lines 1037 to 1110 in a913071
s-ludwig commentedon Jun 11, 2024
I wonder if
Version.minReleaseshouldn't be "0.0.0-0" instead of just "0.0.0", as that is really the lowest representable version. Also, the condition for determining whether to add a ">" part and a "<" part during the string conversion seems a little bit off and I'd say they should include a|| !m_inclusiveA/|| !m_inclusiveBaddition respectively.Also, although is may be less likely to be a problem,
Version.maxRelease("99999.0.0") is completely arbitrary and doesn't seem like a meaningful constant.Fix dlang#2901: VersionRange.toString() doesn't handle >0.0.0
Fix dlang#2901: VersionRange.toString() doesn't handle >0.0.0
Fix dlang#2901: VersionRange.toString() doesn't handle >0.0.0
p0nce commentedon Jun 11, 2024
Thanks!!!