https://pantsbuild.org/ logo
#general
Title
# general
f

fresh-architect-74417

10/09/2019, 11:18 PM
I updated to version
1.18.0.dev0
Sorry for asking too many questions. What happens if I name my goal with something that's already exist? For instance, instead of having
install('hello-world')
, I use
install('test')
from the following example.
Copy code
task(name='world', action=WorldTask).install('hello-world')
How does the goal knows the right target?
🎉 1
h

hundreds-father-404

10/09/2019, 11:28 PM
don’t apologize! That would add a new task to the
test
goal, so when you run
./pants test
it will also run
WorldTask
f

fresh-architect-74417

10/10/2019, 4:56 AM
From what I understand, each goal check for the instance type of the target, and decide to run based on that. Is that correct?
2 Views