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
import 'var.just'
show:
@echo "compose_provider is {{ compose_provider }}"
Justfile
import 'var.just'
mod test 'test.just'
show:
@echo "compose_provider is {{compose_provider}}"
And when i set the compose_provider from command line, the show recipe in the Justfile is changed as expect
❯ just --unstable compose_provider=nerdctl show
compose_provider is nerdctl
but the show recipe in the test module always show the default value
❯ just --unstable compose_provider=nerdctl test show
compose_provider is podman
The just version is 1.27.0
The text was updated successfully, but these errors were encountered:
casey
changed the title
Recipe in module doesn't pick the variable set from command line
Variables defined in a submodule should be overridable on the command line
Jun 1, 2024
This is currently not possible. On the CLI, only variables in the root justfile can be overridden, but it would be nice to be able to override submodule variables.
I have following justfile in the same directory:
var.just
test.just
Justfile
And when i set the compose_provider from command line, the show recipe in the Justfile is changed as expect
but the show recipe in the test module always show the default value
The just version is 1.27.0
The text was updated successfully, but these errors were encountered: