-
-
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.
PackageManager: Store packages hierarchically, by version
As explained in the changelog, this hierarchy makes much more sense than the current one, and will make it possible to read the version from the directory name.
- Loading branch information
Showing
2 changed files
with
49 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The way packages are stored internally has changed | ||
|
||
Previous versions of dub stored packages in the following format: | ||
`$CACHE_PATH/$PACKAGE_NAME-$PACKAGE_VERSION/$PACKAGE_NAME/` | ||
Starting from this version, the format will be: | ||
`$CACHE_PATH/$PACKAGE_NAME/$PACKAGE_VERSION/$PACKAGE_NAME`. | ||
|
||
Introducing a new level will help users quickly list what packages | ||
they actually have installed, and reduce visibility of packages that | ||
might update frequently. It will render various commands (e.g. `du`) | ||
more useful, and pave the way for a package GC function. | ||
More importantly, it will allow future version of dub to infer the | ||
version from the path to the package, removing the need to read (or edit) | ||
the recipe file on every dub invocation. |
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