Replies: 2 comments
-
|
I think a simple alternative would be to allow foo := require("foo", "install it with `just install-foo")$ just
error: Call to function `require` failed: could not find executable `foo`: install it with `just install-foo` |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is dramatically more simple and solves part of the problem, I like it! It does not connect to the installation recipes (which I will almost always provide to make usage simpler) though. Without Also we cannot do auto-installations of all missing executables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While very useful, I often find that I cannot use the
require()function for executables if I also want to provide an installation recipe (which cannot run if the executable is not there because ofrequire()).Maybe we can introduce something like this:
When running
just hello(withoutfoobeing installed) on Windows this would yield the current status quo:The same on macOS would change the error message to this:
Furthermore we could (should IMHO) add a configuration
automatic-installflag (trueby default) tojust(including a matching environment variable) that automatically runs install recipes before they are needed. If that is too complex (not sure how this would pan out technically) this could be a great secondary feature on top ofinstall().This would give a great out of the box experience for getting started with complex projects.
Edit: changed "installs" keyword to "install" (singular)
Beta Was this translation helpful? Give feedback.
All reactions