Skip to content

Make justfile recipes work from any subdirectory #335

Description

@Otaiki1

Context

Every recipe in justfile uses relative paths — cd circuits && npm run compile,
cd contracts && cargo test. just runs from the invocation directory by default, so running
just contract from inside app/ looks for app/contracts/ and fails with a confusing error.

just has a built-in fix for exactly this.

Where to build it

  • justfile — the top of the file and every recipe.

What to do

  • Add set working-directory := justfile_directory() (or prefix paths with {{justfile_directory()}} on older just versions).
  • Verify every recipe from a subdirectory.
  • Note the minimum just version needed for the setting, in a comment.

Acceptance criteria

  • cd app && just contract works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdxDeveloper experience & toolinggood first issueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions