just icon indicating copy to clipboard operation
just copied to clipboard

Variables defined in a submodule should be overridable on the command line

Open lisongmin opened this issue 9 months ago • 2 comments

I have following justfile in the same directory:

var.just

compose_provider := 'podman'

test.just

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

lisongmin avatar Jun 01 '24 15:06 lisongmin