-
Sorry if this is already documented somewhere and I've missed it. Is there a way to change a target's name without invalidating the target? In other words, I want to change some names of previously built targets in the plan, but not actually cause the steps to run again since some of them are time consuming. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I tried this in |
Beta Was this translation helpful? Give feedback.
I tried this in
drake
, but it did not go well. The main problem was reverse dependencies: if you rename a target, the downstream targets that depend on it need to update their commands, which invalidates those targets. So I do not think it is feasible. The other challenge was changing the name without changing the RNG seed, which turned out to be awkward because default target seeds indrake
are automatically computed from target names. Intargets
, there is no way to set the seed independently from the target name, and so far I do not think the reasons in favor of such a feature are compelling enough.