perf: avoid redundant bootstrap runs on commands #26

Merged
mcataford merged 1 commit from perf/avoid-redundant-bootstrap-runs into main 2023-08-19 15:16:10 +00:00
mcataford commented 2023-08-19 15:15:20 +00:00 (Migrated from github.com)

Running most commands depends on the environment's bootstrap step that makes sure that dependencies are set up. Previously, the step ran every time it's invoked, even if it ends up being a no-op (mostly).

Even in no-op scenarios, work is being done to validate that dependencies are met, which isn't useful at all.

This leverages sources and generates to keep track of env artifact checksums and skip bootstrap if already up-to-date.

Running most commands depends on the environment's `bootstrap` step that makes sure that dependencies are set up. Previously, the step ran every time it's invoked, even if it ends up being a no-op (mostly). Even in no-op scenarios, work is being done to validate that dependencies are met, which isn't useful at all. This leverages `sources` and `generates` to keep track of env artifact checksums and skip bootstrap if already up-to-date.
This repo is archived. You cannot comment on pull requests.
No description provided.