Closed swankjesse closed 3 months ago
Seems like as good of time as any to break that behavior and use a more normal strategy of an arbitrary dir + something based on task/target names.
Redwood has been consuming the task output without caring about where it lives and it works great: https://github.com/cashapp/redwood/blob/e76c025e697392c5109c1d7e2edde5507a6b1a2a/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt#L517-L519. Shouldn't be too hard to migrate our internal usage of hard-coded paths to be well behaved.
Our builds are crashing like this:
I believe the root cause is the Android Gradle plugin’s
BuildAnalyzerConfiguratorService
, which attempts to retrieve every task’s output directory.Unfortunately, we’re choosing our output directory based on another task’s output directory.