Skip to content

Remove repetitive, hardcoded temporary directory creation used across Justfile recipes #3112

Description

@danceratopz

Initially suggested by @SamWilsn here #3096 (comment), but apparently recipe_name() is dynamic, so it can't move the mkdir into a shared recipe.

Here's an idea from an alternative:

[private]
_tmp name:
    @mkdir -p "{{ output_dir }}/{{ name }}/tmp"

json-loader *args: (_tmp "json-loader")
    uv run fill ...

If we bumped min version from 1.43 to 1.53 (which I'd prefer to avoid), I think we could write:

json-loader *args: (_tmp recipe_name())

Originally posted by @danceratopz in #3096 (comment)

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