Skip to content

[Bug] Executing recipes from imported justfile is done in working dir of imported file #1813

@michaelCTS

Description

@michaelCTS

just version: 1.21.0

This bug seems like a regressions, as in 1.16.0 the !include statement didn't work this way and my just files were executing fine.

Example

/tmp/justtest/justfile

upper:
  echo upper
  pwd

/tmp/justtest/sub/justfile

import "../justfile"

default: upper
  echo sub
  pwd
$ cd /tmp/justtest/sub
$ just
upper
pwd
/tmp/justest
sub
pwd
/tmp/justest/sub

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