You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@casey Thanks for adding submodule support, it's working great.
Currently, when you invoke a submodule recipe within a directory containing a justfile with set fallback but no submodules defined (the requested submodule is defined in a parent justfile), the following error is encountered:
❯ just myapp::start
error: Justfile does not contain submodule `myapp`
It would be nice if the fallback setting (or another one, e.g. fallback-submodules) would allow just to look for a requested submodule in parent justfiles.
Sometimes you are in a nested folder structure, and you quickly want to call a recipe defined in the root justfile. Since fallback does not work for submodules, the workaround is to add the submodule to the justfile at your level in the hierarchy (even though the recipe you want to run is unrelated to that justfile), or to cd back to the root and run the recipe from there, or to add a recipe in the root justfile that calls into its own submodule definition.
Example
This is what happens currently:
❯ cd proj/foo/bar
❯ just --version
just 1.34.0
❯ just hello
hello
❯ just myapp::start
error: Justfile does not contain submodule `myapp`
This is what should happen:
❯ cd proj/foo/bar
❯ just hello
hello
❯ just myapp::start
starting
proj/justfile
modmyapp'justfile-myapp.just'default:
just --list
proj/justfile-myapp.just
start:@echo "starting"
proj/foo/bar/justfile
setfallback# set fallback-submoduleshello:@echo "hello"
The text was updated successfully, but these errors were encountered:
@casey Thanks for adding submodule support, it's working great.
Currently, when you invoke a submodule recipe within a directory containing a justfile with
set fallback
but no submodules defined (the requested submodule is defined in a parent justfile), the following error is encountered:It would be nice if the
fallback
setting (or another one, e.g.fallback-submodules
) would allowjust
to look for a requested submodule in parent justfiles.Sometimes you are in a nested folder structure, and you quickly want to call a recipe defined in the root justfile. Since fallback does not work for submodules, the workaround is to add the submodule to the justfile at your level in the hierarchy (even though the recipe you want to run is unrelated to that justfile), or to cd back to the root and run the recipe from there, or to add a recipe in the root justfile that calls into its own submodule definition.
Example
This is what happens currently:
This is what should happen:
proj/justfile
proj/justfile-myapp.just
proj/foo/bar/justfile
The text was updated successfully, but these errors were encountered: