Skip to content

Specifying dependency by alias causes error #1725

@laniakea64

Description

@laniakea64

Using just 1.16.0 Linux x86_64 build downloaded from https://github.com/casey/just/releases/tag/1.16.0

Minimal test justfile:

foo: a
	echo 'Foo'

actual-recipe:
	echo 'this recipe has an alias'
alias a := actual-recipe

Running just just errors with -

$ just
error: Recipe `foo` has unknown dependency `a`
  |
1 | foo: a
  |      ^

Same error still occurs when putting the aliased recipe and/or its alias before the recipe that depends on it.

Workaround: instead of using an alias, define it as another recipe:

foo: a
	echo 'Foo'

actual-recipe:
	echo 'this recipe has an alias'
a: actual-recipe

Is it possible to make this work with alias?

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