forked from nim-lang/nimble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix getting download dir name for develop (nim-lang#952)
* Fix getting download dir name for develop When getting the download directory name for a package that we want to put in develop mode, a trailing slash in the URL or the subdir leads to getting an empty string. To fix the problem we remove the trailing slash from them at the start of the `getDevelopDownloadDir` procedure. * Add tests for the `getDevelopDownloadDir` proc The `getDevelopDownloadDir` procedure is moved in the `download.nim` module and units tests for it are added. * Fix the tests on Windows Fix the `getDevelopDownloadDir` procedure tests on Windows by adding normalization of the expected paths.
- Loading branch information
1 parent
81787e6
commit eb5f782
Showing
2 changed files
with
59 additions
and
16 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
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