Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support “subdirectory/recipe” notation in recipe dependencies #1184

Closed
eigengrau opened this issue May 10, 2022 · 2 comments
Closed

Support “subdirectory/recipe” notation in recipe dependencies #1184

eigengrau opened this issue May 10, 2022 · 2 comments

Comments

@eigengrau
Copy link

eigengrau commented May 10, 2022

I notice that, inside a Just recipe, it is possible to explicitly delegate to recipes declared in sub- or super-directory Justfiles, by invoking Just recursively, as in:

foo:
    @just subdir/bar
    @just ../quux

While this feature may have been intended more for interactive use (since in Justfiles one may just as well type @just --justfile subdir/Justfile bar (…or maybe introduce --justdir to make it less clumsy), this made me wonder whether it would make sense to support this “short-cut” notation as part of a recipe’s dependencies, so that one could write:

foo: subdir/bar ../quux

(I guess if dependencies of type file – à la Make – ever become a thing this notation may prove confusing, though, or one may prefer a different symbol over the slash)

Thanks for building Just!

@eigengrau eigengrau changed the title Support subdirectory/recipe notation in recipe dependencies Support “subdirectory/recipe” notation in recipe dependencies May 10, 2022
@casey
Copy link
Owner

casey commented May 10, 2022

I think this is mostly covered by #383, since I think it would be done best as some kind of module system.

Thanks for building Just!

You are most welcome!

@casey casey closed this as completed May 10, 2022
@eigengrau
Copy link
Author

I think this is mostly covered by #383, since I think it would be done best as some kind of module system.

Thanks for the pointer. The headline sounds enticing, I’ll check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants