packageCache

Compute and returns the path were artifacts are stored for a given package

Artifacts are usually stored in: $DUB_HOME/cache/$PKG_NAME/$PKG_VERSION[/+$SUB_PKG_NAME]/ Note that the leading + in the subpackage name is to avoid any ambiguity. Build artifacts are usually stored in a subfolder named "build", as their names are based on user-supplied values.

package package(dub)
NativePath
packageCache
(
NativePath cachePath
,)

Parameters

cachePath NativePath

Base path at which the build cache is located, e.g. $HOME/.dub/cache/

pkg Package

The package. Cannot be null.

Meta