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 --unstable to be passed through via environment variables #1575

Closed
p5 opened this issue Apr 2, 2023 · 4 comments
Closed

Allow --unstable to be passed through via environment variables #1575

p5 opened this issue Apr 2, 2023 · 4 comments

Comments

@p5
Copy link

p5 commented Apr 2, 2023

It would be great if users can globally opt-in to unstable features by setting an environment variable such as JUST_ALLOW_UNSTABLE.

If that variable is set to any value, it acts the same as if the --unstable flag is passed through to the commands.
This still allows the safety of feature-flagging the newest commands, but those who want the absolute latest-and-greatest can set this option system-wide and not have to think about passing through the --unstable parameter

@Taywee
Copy link

Taywee commented Apr 7, 2023

This would also be useful for calling just inside of a recipe and being sure the unstable option propagates through.

@ealtintas
Copy link

ealtintas commented Jun 15, 2023

I think using a directive like set unstable in a parent justfile (which may include other justfiles) would also a be good solution for this issue.

error: The !include directive is currently unstable. Invoke `just` with the `--unstable` flag to enable unstable features.

How long do you think the '!include' directive should stay as 'unstable' ? @casey

@ealtintas
Copy link

Related: #1430 , #1564

@casey
Copy link
Owner

casey commented Oct 9, 2023

Fixed in #1588!

@casey casey closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants