-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge stable #2299
Merge stable #2299
Conversation
Uses exact version matching instead of SemVer matching for cached packages to enforce exact matches for SCM based dependencies in particular.
… the need to fetch a dependency. Fixes dlang#2262.
…ion_match Match versions of cached packages exactly
Conflicts: source/dub/dependency.d
if (this.matchesAny) return true; | ||
if (this.isSCM) return true; | ||
if (this.isExactVersion && mode == VersionMatchMode.strict | ||
&& this.version_.toString != v.toString) | ||
return false; | ||
return this.m_range.matches(v); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was refactored in master in the meantime. I moved the strict check before the new VersionRange.matches()
call. Maybe the latter should get a new VersionMatchMode
param and handle it itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but the current version should work just fine, even if it's a bit ugly.
No description provided.