Documentation
¶
Overview ¶
Cache archive related models and functions.
Cache descriptor file related models and functions.
Cache path and ignore path related functions.
Ignoring symlink target changes for cache invalidation, as we expect the symlinks to be yarn workspace symlink: https://yarnpkg.com/blog/2018/02/15/nohoist/. The symlinks are included in the cache, just not chhecked if the target they point to is changed. If case it is a link to a directory outside of the cached paths (e.g. yarn workspaces), will not add the linked directory to the cache, and will not invalidate the cache if it changes, as we expect them to be part of the repository. If it links to a directory included in the cache already, then also ignoring it. The directory contents will be added to the cache as regular files, no need to check them twice. Symlinks to files are also ignored.
Cache Push step keeps the project's cache in sync with the project's current state based on the defined files to be cached and ignored.
Files to be cached are described by a path and an optional descriptor file path. Files to be cached can be referred by direct file path while multiple files can be selected by referring the container directory. Optional indicator represents a files, based on which the step synchronizes the given file(s). Syntax: file/path/to/cache, dir/to/cache, file/path/to/cache -> based/on/this/file, dir/to/cache -> based/on/this/file
Ignore items are used to ignore certain file(s) from a directory to be cached or to mark that certain file(s) not relevant in cache synchronization. Syntax: not/relevant/file/or/pattern, !file/or/pattern/to/remove/from/cache