Skip to content

Recursive just breaks with remote justfile #2763

@chicks-net

Description

@chicks-net

Setup

I was running just -d . -f ~/Documents/git/template-repo/justfile merge with
remote justfile. I had run just -d . -f ~/Documents/git/template-repo/justfile pr without any errors, but the merge had an error message:

just sync # mostly redundant, but just in case
error: Justfile does not contain recipe `sync`
error: Recipe `merge` failed on line 63 with exit code 1

So the just sync that just merge tried to run could not be found. This makes sense, but it is too bad that the just sync couldn't know about the options that were passed to the just merge.

Questions

  1. Is there a variable that could be passed to inner calls of just that would pass along the options from the original call to just?
  2. Could/does just handle this cleanly when not in a shebang script context?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions