Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow --project=@scriptdir for easier co-packaging of scripts and p… #50864

Merged
merged 1 commit into from
Aug 18, 2023

Commits on Aug 10, 2023

  1. Allow --project=@scriptdir for easier co-packaging of scripts and p…

    …rojects
    
    I have a directory with a number of runnable scripts and a Project.toml
    that applies to all of them. I was hoping to have a simple shebang line
    for these, but there didn't really seem to be a good way to set the
    `--project` without forcing the script to be invoked with a specific
    cwd or playing complicated shebang games. With this PR, you can simply
    write:
    
    ```
    #!/usr/bin/env -S julia --project=@scriptdir/..
    ```
    
    and everything will work out of the box. Perhaps we already have
    a good mechanism for this, but if so, I was unable to find it,
    so in that case, consider this a documentation issue instead ;).
    Keno committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    5b4248f View commit details
    Browse the repository at this point in the history