Integrated: 2452: Client CLI build fails on Windows
    Erik Joelsson 
    erikj at openjdk.org
       
    Tue Mar  4 13:59:46 UTC 2025
    
    
  
On Mon, 3 Mar 2025 23:27:00 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> Building the default target "local" fails on Windows with the error message below. I think this started happening when we upgraded the Gradle version last. This is the target that the automatic CLI build/installation runs.
> 
> 
> * What went wrong:
> Execution failed for task ':local'.
>> Cannot access a file in the destination directory. Copying to a directory which contains unreadable content is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to https://docs.gradle.org/8.5/userguide/incremental_build.html#disable-state-tracking in the Gradle documentation.
>  > Failed to create MD5 hash for file content.
> 
> 
> I'm working around/fixing it by moving the output dir of the `local` task to its own subdir in the project build dir. I'm also adding the target `local` explicitly to the GHA tasks so that this kind of problem gets caught there. I intentionally did this in a separate commit to demonstrate that it would fail for this branch/PR.
This pull request has now been integrated.
Changeset: 64188c3d
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.org/skara/commit/64188c3d97a8ca1f2b9b47ac9af2a3adc0cd8780
Stats:     7 lines in 3 files changed: 0 ins; 0 del; 7 mod
2452: Client CLI build fails on Windows
Reviewed-by: ihse
-------------
PR: https://git.openjdk.org/skara/pull/1707
    
    
More information about the skara-dev
mailing list