jbauer opened 2 months ago
|
|||||
Robin Shen changed state to 'Closed' 3 weeks ago
|
|||||
This improvement is covered via #1836 |
Type |
Improvement
|
Priority |
Normal
|
Assignee | |
Labels |
No labels
|
Issue Votes (0)
Currently the logic is
While I can understand the intention it fully ignores the fact that a build can produce cacheable data. But that data is produced after the cache key has been computed so it is impossible to cache that produced data. One example would be a project that has
SNAPSHOT
dependencies. In that case the project does not change but the build downloads new versions of dependencies regularly and stores them in the build tool cache. These downloaded dependencies can not be cached using the above logic. Other examples might be specialized build tool plugins that need to compute something and store it in the build tools cache. These things cannot be cached as well.Maybe it might be good to provide an alternative logic that simply always uploads the cache using the cache key. That would mimic the previous OneDev behavior of just having a folder being cached without any logic.
Could be as easy as providing a configuration switch that disables the "if not previously hit" upload logic.