what's the most streamlined way to run a built-in ...
# plugins
f
what's the most streamlined way to run a built-in goal from a plugin's goal? My use case: I generate a BUILD file (not with
tailor
) from a custom goal and would like to format the file once it's written on disk before returning.
c
built-in goals are a bit special, not sure there is an easy way to just invoke them from a regular goal..
f
I'd really like to avoid using the internal code of the
update-build-files
just for this 😄
c
maybe want to look at the actual goals implementation to see what can be re-used from behind the curtains so to speak
yea
f
cli.alias perhaps 😉 in your style Andreas!!
c
heh 😛
f
oh you cannot chain goals in an alias, can you
c
but, update-build-files is not a builtin goal..it’s just a regular goal
f
oh I have used this term wrong then I guess! I meant the goals that come OOTB with Pants
c
if you’re excecuting in a goal rule, I guess you could just do
await Get(UpdateBuildFilesGoal, {})
maybe… 😁
f
oh let me experiment a bit!
f
oh I have used this term wrong then I guess! I meant the goals that come OOTB with Pants
"builtin goal" means the bootstraping goals that are implemented outside of the engine
🙏 1
(and also the
./pants experimental-bsp
goal which turns Pants into a Build Server Protocol server)
c
ah @fresh-cat-90827 you may need to use
await Effect()
though…
as goals are side-effecting…