You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/02/01 23:43:00 UTC

[jira] [Commented] (MBUILDCACHE-81) Cache portability between project versions is broken due to [MBUILDCACHE-76]

    [ https://issues.apache.org/jira/browse/MBUILDCACHE-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17813431#comment-17813431 ] 

ASF GitHub Bot commented on MBUILDCACHE-81:
-------------------------------------------

olamy commented on PR #129:
URL: https://github.com/apache/maven-build-cache-extension/pull/129#issuecomment-1922493810

   I would suggest to change the title of the PR and the jira as well. 
   As MBUILDCACHE-76 has not been released but merged only, the release notes will be very confusing as is :)
   maybe something saying add an option to add add project version as part of the cache hash key.
   wdyt?




> Cache portability between project versions is broken due to [MBUILDCACHE-76] 
> -----------------------------------------------------------------------------
>
>                 Key: MBUILDCACHE-81
>                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-81
>             Project: Maven Build Cache Extension
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Igor Dianov
>            Assignee: Olivier Lamy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>
> *Current* *Behavior*
> The MBUILDCACHE-76 has broken cache reuse between project versions in a multi-module projects, i.e. changing version from 1.0.0-SNAPSHOT to 1.0.0 causes the cache to miss the checksum validation which causes full rebuild of the project.
> *Expected Behavior* 
> The build cache version normalization should support project version agnostic caches, so that restoring project from cache avoids repeating expensive tasks like running tests according to  features: [https://maven.apache.org/extensions/maven-build-cache-extension/index.html]
> *Possible Solutions*
>  * Disable cache for releases if the build requires rebuild due to version changes.
>  * Introduce a feature flag configuration to use project version in checksum calculations for cache invalidation
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)