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
The interaction between the import statement and the overriding of recipes doesn't seems intuitive to me, because imported recipes take the precedence over the ones in the importing file. I'd expect the other way around, in order to be able to override "defaults".
The following example shows the problem. With the two files:
# justfile
set allow-duplicate-recipes
import 'lib.just'
_default: hello
$ just --version
just 1.19.0
$ just
error: Justfile contains no default recipe.
$ just _default
Available recipes:
hello
While I'd expect that the default recipe exists, and should be the _default defined in ./justfile. If I move set allow-duplicate-recipes in ./lib.just, or move the _default definition before the import, I get the same results.
The text was updated successfully, but these errors were encountered:
The interaction between the import statement and the overriding of recipes doesn't seems intuitive to me, because imported recipes take the precedence over the ones in the importing file. I'd expect the other way around, in order to be able to override "defaults".
The following example shows the problem. With the two files:
I get the following:
While I'd expect that the default recipe exists, and should be the
_default
defined in./justfile
. If I moveset allow-duplicate-recipes
in./lib.just
, or move the_default
definition before the import, I get the same results.The text was updated successfully, but these errors were encountered: