Skip to content

target package: early exit and time comparisons #323

Closed
@SelfDrivingCarp

Description

@SelfDrivingCarp

Currently, the target package does some unnecessary filesystem inspection. It will recurse a directory or inspect a set of source files to collect the newest timestamp then compare that timestamp to a target to see if any of the source timestamps is newer than the target. The logic should be reworked to recurse/inspect, comparing against the target, and stop as soon as a newer source is found.

It would also be useful if the Dir, Glob, and Path functions supported supplying a timestamp as the target, rather than a file path. This would allow for comparison against arbitrary targets like container images using those functions. The existing three functions could then discover the target timestamp for comparison and just wrap functions that take a target timestamp.

PR inbound

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions