Weld.Core.Inventory (weld v0.20.2)

Copy Markdown View Source

Pure inventory views and comparison over explicit source/output observations.

An entry's target is a portable relative path; inputs contains the provenance of every contributing source, including transformations. No view discovers files independently of the supplied inventory.

Summary

Functions

Compare exact expected entries with observed entries keyed by target.

Build a reverse index including all contributors to a generated output.

Types

entry()

@type entry() :: map()

Functions

diff(entries, observed)

@spec diff([entry()], %{required(String.t()) => map()}) :: [map()]

Compare exact expected entries with observed entries keyed by target.

project_id(entries, empty_dirs \\ [])

@spec project_id([map()], [String.t()]) :: String.t()

reverse_index(entries)

@spec reverse_index([entry()]) :: map()

Build a reverse index including all contributors to a generated output.

targets(entries, role)

@spec targets([entry()], atom()) :: [String.t()]

validate!(entries)

@spec validate!([entry()]) :: [entry()]

validate_path!(path)

@spec validate_path!(String.t()) :: String.t()

view(entries, atom)

@spec view([entry()], :project | :package | :verify | :docs | :live_guard) :: [
  entry()
]