-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2706: Dub run ignores locally registered packages
The code was overly complicated and failed to do what it intended. If a version was provided, it would always call 'fetch' even though getBestPackage would have returned something. Assuming that sub-packages are always present is also not working, as the following would fail: $ rm -rf ~/.dub/packages/vibe-d && dub run vibe-d:data Warning Package 'vibe-d:data' was neither found locally nor online. The new code is both shorter and simpler, taking advantage of the various improvements made to the APIs over the year (for example, getBestPackage with VersionRange.Any does the right thing).
- Loading branch information
Showing
1 changed file
with
30 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters