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

Do subsequents of a recipe run "immediately" after the recipe (by specification)? #2324

Closed
donatello opened this issue Aug 27, 2024 · 1 comment · Fixed by #2326
Closed

Comments

@donatello
Copy link

Suppose I have the following Justfile:

a:
    echo "A"

b:
    echo "B"

# `a` runs before `c` and `b` runs after `c`
c: a && b
    echo "C"

d: c
    echo "D"

When running just d, I see the output sequence "A C B D", which looks good. However, could the output ever be "A C D B"?

According to the "Dependencies" documentation, b is only guaranteed to run after c, but it is not clear, if b could run after d and still be considered expected behavior. This may be worth documenting.

@casey
Copy link
Owner

casey commented Aug 27, 2024

When running just d, I see the output sequence "A C B D", which looks good. However, could the output ever be "A C D B"?

Nope, for that justfile it will always be A C D B. I opened #2326 to clarify this in the readme.

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

Successfully merging a pull request may close this issue.

2 participants