-
Notifications
You must be signed in to change notification settings - Fork 476
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
Set minimal required just
version for a justfile
#2290
Comments
set min-just-version := '1.32.0' |
This is actually quite a tricky problem. Let's say there's a new function set minimum-just-version := '1.50.0'
foo:
echo {{ foo() }} However, a call to a new function in This is a somewhat trivial example, because a missing function error could be deferred until the end of compilation, so you did have a There are a few solutions, but none of them seem very nice:
I'm not convinced though that any of these are worth it though. |
Just a thought, |
This is possible, although I'd like to avoid adding special case parsing logic just for this feature. |
what if add version into filename? like
which can be created by
i think not all func need to work at the same version |
lets not, min version is a small implementation detail, and most users of the repo shouldn't be aware of it. First non-comment line could work ok though |
just
is rapidly evolving, frequently adding new features.justfiles
are frequently shared between users, and those users may have different Just versions installed, which means in some cases some newer features might not be available in the olderjust
versions.We need a way to specify the minimum required version for
just
, similar to howcmake
and many other similar tools do it. The actual syntax is up for a discussion:Naming is hard
Some ideas...
The text was updated successfully, but these errors were encountered: