4 Work Directory Content🔗ℹ

The build-pkgs function needs a work directory where it will assemble packages and results. The generated content of the work directory can be used as a catalog of built packages plus web-friendly files that report build and test results.

If the work directory content persists across calls to build-pkgs, then build-pkgs will incrementally rebuild changed packages and other packages that depends on them. However, a work directory must be reused only when the configuration supplied to build-pkgs does not change.

The work directory will include the following files and directories, most of which are output, some of which record state for the purpose of incremental builds, and very few of which are treated as extra inputs:

Using this information, the build-pkgs rebuilds a package is if its checksum changes or if one of its declared dependencies changes.