Skip to content

Support seamless cross-platform Justfile execution across Windows #97

Closed

Description

@MusabYK

Running just commands (e.g just format) on Windows fails with the following errors:

1. error: recipe format could not be run because just could not find the shell sh: program not found

2. error: extraneous attributes ——▶ justfile:11:1 [group("Dart")]

By default, just looks for a POSIX shell (sh). Windows does not include this by default, which breaks the onboarding experience for Windows contributors even if Git Bash is installed.

Workaround

The following configuration currently works:
set unstable := true // Allows experimental features like [group(...)]
set windows-shell := ["powershell.exe", "-Command"] // Allows just to use PowerShell on Windows.

Proposed Solution

Update the Justfile to support windows-shell
Example:
set unstable := true
set shell := ["sh", "-c"]
set windows-shell := ["powershell.exe", "-Command"]

This improves the onboarding experience for Windows contributors and avoids requiring a separate POSIX shell installation such as Git Bash, MSYS2, or WSL.

Constrains: It requires testing on all OS

Activity

  1. j-kon commented on Jun 26, 2026

    @j-kon
    Contributor

    Hi @MusabYK, thanks for opening this issue.

    This looks useful for improving the Windows contributor setup. I’m interested in helping with this, especially around making the Justfile work cleanly across Windows, macOS, and Linux.

    Are you planning to open a PR for it? If yes, I’m happy to follow along or help review/test. If not, I can take a look and work on a focused PR for this.

  2. MusabYK commented on Jun 26, 2026

    @MusabYK
    ContributorAuthor

    Hi @j-kon thanks for reaching out.
    I'm actually planning to open a PR because i also find another issue with generate_bindings.sh script on windows which could be addressed through the justfile recipe. I'll appreciate your help reviewing/testing it after.

  3. j-kon commented on Jun 26, 2026

    @j-kon
    Contributor

    Thanks @MusabYK, sounds good.

    I’ll hold off on opening a PR then. Happy to help review/test once you open it, especially around checking the Justfile behavior on macOS/Linux and making sure the Windows changes don’t break the existing workflow.

    The generate_bindings.sh part also sounds worth looking at carefully since it may need a clear fallback or docs for Windows contributors.

  4. MusabYK commented on Jun 27, 2026

    @MusabYK
    ContributorAuthor

    Hi @j-kon could you please take a look at the PR? #100

  5. added
    enhancement
    bug
    and removed
    enhancement
    on Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions