gradle / gradle

Adaptable, fast automation for all
https://gradle.org
Apache License 2.0
16.86k stars 4.72k forks source link

Make global transforms cache additive only #11478

Open lptr opened 4 years ago

lptr commented 4 years ago

Currently global transforms are executed in a workspace that is directly inside the cache directory. If a transform fails for some environmental reason, during the next run the files in the workspace will be modified. This conflicts with keeping the cache directory additive (i.e. files can appear there but never removed or modified).


cc: @gradle/build-cache

lptr commented 4 years ago

One way to do this is to run in a separate workspace and then move the files into the cache on success.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.