flat-spoon-77530
03/07/2024, 3:22 PMrun
goal with --changed-since
?
When trying to, I'm faced with the error
TooManyTargetsException: The `run` goal only works with one valid target, but was given multiple valid targets
So I am wondering whether there's any way to achieve this in a different fashion.
The use case would be to run some adhoc_tool
or script when its dependencies changewide-midnight-78598
03/07/2024, 3:23 PM--loop
wide-midnight-78598
03/07/2024, 3:23 PMwide-midnight-78598
03/07/2024, 3:23 PMflat-spoon-77530
03/07/2024, 3:24 PMadhoc_tool
or script when its dependencies changeflat-spoon-77530
03/07/2024, 3:26 PMwide-midnight-78598
03/07/2024, 3:26 PMwide-midnight-78598
03/07/2024, 3:26 PMpants --loop test
type of thingflat-spoon-77530
03/07/2024, 3:27 PMadhoc_tool
instead of writing a plugin, which I would then like to run whenever some files it depends on change.flat-spoon-77530
03/07/2024, 3:27 PMadhoc_tool
will sufficewide-midnight-78598
03/07/2024, 3:28 PMflat-spoon-77530
03/07/2024, 3:29 PM--changed-since
flagwide-midnight-78598
03/07/2024, 3:31 PMwide-midnight-78598
03/07/2024, 3:32 PMflat-spoon-77530
03/07/2024, 3:32 PMflat-spoon-77530
03/07/2024, 3:33 PMwide-midnight-78598
03/07/2024, 3:35 PMadhoc_tool
unless there's some specific reason it won't work. Writing and maintaining a plugin is more time consuming in general.
For example, I have an adhoc_tool that builds my SvelteKit repo and then zips and deploys Azure to because we don't have TS support baked-in just yet, and the rest of it would otherwise be a shell commandwide-midnight-78598
03/07/2024, 3:36 PMwide-midnight-78598
03/07/2024, 3:38 PMadhoc_tool provides you with the building blocks needed to put together a custom build process without needing to develop and maintain a plugin. The level of initial effort involved in using adhoc_tool is significantly lower than that of writing a plugin, so it's well-suited to consuming one-off scripts, or for rapidly prototyping a process before actually writing a plugin. The tradeoff is that there is more manual work involved in defining build processes that reflect your codebase's structure, and that the targets that define the tools you consume are less easy to reuse.
but I think calling out specifics in a section would be niceflat-spoon-77530
03/07/2024, 3:38 PMThe level of initial effort involved in usingis significantly lower than that of writing a plugin, so it's well-suited to consuming one-off scripts, or for rapidly prototyping a process before actually writing a plugin. The tradeoff is that there is more manual work involved in defining build processes that reflect your codebase's structure, and that the targets that define the tools you consume are less easy to reuse.adhoc_tool
flat-spoon-77530
03/07/2024, 3:39 PMflat-spoon-77530
03/07/2024, 3:39 PMflat-spoon-77530
03/07/2024, 3:40 PMwide-midnight-78598
03/07/2024, 3:41 PMflat-spoon-77530
03/07/2024, 3:43 PM--changed-since
feature of Pants 😄wide-midnight-78598
03/07/2024, 3:43 PMflat-spoon-77530
03/07/2024, 3:44 PMwide-midnight-78598
03/07/2024, 3:44 PMflat-spoon-77530
03/07/2024, 3:45 PMwide-midnight-78598
03/07/2024, 3:46 PMwide-midnight-78598
03/07/2024, 3:47 PMflat-spoon-77530
03/07/2024, 3:47 PMpants --changed-since=HEAD^ runThis does not work, and if it would, it would run way too much, so I would need to filter this down somehow to the
adhoc_tools
that matter herewide-midnight-78598
03/07/2024, 3:49 PMpants --changed-since=HEAD list | something?
or something else more bash-yflat-spoon-77530
03/07/2024, 3:49 PMflat-spoon-77530
03/07/2024, 3:50 PMwide-midnight-78598
03/07/2024, 3:50 PMflat-spoon-77530
03/07/2024, 3:50 PM--check-dependents=transitive
option I can addflat-spoon-77530
03/07/2024, 3:51 PMwide-midnight-78598
03/07/2024, 3:51 PMwide-midnight-78598
03/07/2024, 3:54 PMflat-spoon-77530
03/07/2024, 3:56 PM