Open jloveric opened 3 years ago
I think you may be looking for something like buck run
?
https://buck.build/command/run.html#content
The key distinction is that it doesn't assume the output already exists, it tries to build and then run (so it's a no-op build if nothing has changed if you already built, or it'll build and run the output).
Actually buck run is slower than just running off the par file after you've run buck once. buck run must be doing some other checks that take about 10 seconds vs just running off of the par directly. For python I think this is significant since then buck run ends up being slower than using python without buck.
It seems like buck should have a command for running directly of the par file instead of having to manually call the .par file... (maybe it does and I haven't found it!). The command could be something like "buck execute //some/thing:name" which assumes the target par file already exists and then just runs it with whatever command line options. This would be useful for python especially.