Skip to content

flakes: reuse cached results for self.packages #14895

@KiaraGrouwstra

Description

@KiaraGrouwstra

Is your feature request related to a problem?

flakes currently cache results at the level of the attribute built from the cli, if i understand correctly, whereas such attributes may be accessed from code as potentially intermediate values as well, e.g. through the self fix-point.

Proposed solution

while perhaps not a high priority, it would be nice to see cached results for packages used when accessing these at the code level through self.packages as well.

Alternative solutions

Additional context

i recently took it from @roberth that this feature was not yet implemented.
/cc @edolstra, who is probably most well-versed in performance optimization for flake-based builds.

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions