Skip to content

Don't evaluate @reached_if unless the goal is required #104

@08d2

Description

@08d2

Thanks for the brilliant tool.

I have a Makesurefile with goals that are intended to be executed in different environments. Concretely, there is a @goal build which I can run on my macOS laptop, and a @goal install which only makes sense to run on my Debian server. The install goal has some transitive goals with @reached_if directives that invoke systemctl. When I makesure build on my laptop, I get some errors about systemctl not being installed. It seems that all @reached_if directives in a Makesurefile are evaluated greedily, even if the requested goal wouldn't ever reach them. I guess that would ideally not be the case :)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions