pub struct Resolved {
pub declared: Declared,
pub inferred: Inferred,
}Expand description
A task’s inputs, before cache-key evaluation: what its declared inputs select, and what qk adds to every task on its own.
Fields§
§declared: Declared§inferred: InferredImplementations§
Source§impl Resolved
impl Resolved
Sourcepub fn whole_files(&self) -> impl Iterator<Item = &str>
pub fn whole_files(&self) -> impl Iterator<Item = &str>
The files keyed by their whole content, declared or inferred.
Sourcepub fn is_whole_file(&self, path: &str) -> bool
pub fn is_whole_file(&self, path: &str) -> bool
Whether path is keyed by its whole content.
Sourcepub fn file_inputs(&self) -> impl Iterator<Item = &str>
pub fn file_inputs(&self) -> impl Iterator<Item = &str>
Whole files and the files of JSON inputs, for conservative change selection.
Sourcepub fn always_included(&self) -> BTreeSet<String>
pub fn always_included(&self) -> BTreeSet<String>
Every file qk adds on its own, including those the declared inputs also select.
Sourcepub fn selects_alike(&self, other: &Resolved, workspace: &Workspace) -> bool
pub fn selects_alike(&self, other: &Resolved, workspace: &Workspace) -> bool
Whether other, the same task’s inputs resolved from another
configuration of the same files, selects what these do for its key:
the same files, values and external packages, the same producers,
whose outputs the key holds once they are written, the same projects
when selectivelyHashTsConfig keys their root tsconfig paths, and the
same files, manifests and importers qk adds, which the project graph
and declaring externalDependencies decide. Values hold what json
inputs select and dependentTasksOutputFiles globs; env and runtime
inputs compare by name.
pub fn json_inputs(&self) -> impl Iterator<Item = &str>
pub fn is_json_input(&self, path: &str) -> bool
pub fn environment_inputs(&self) -> impl Iterator<Item = &str>
pub fn runtime_inputs(&self) -> impl Iterator<Item = &str>
Sourcepub fn dependency_output_inputs(&self) -> impl Iterator<Item = (&str, bool)>
pub fn dependency_output_inputs(&self) -> impl Iterator<Item = (&str, bool)>
Each dependency-output pattern and whether it includes transitive tasks.