RFR: 2452: Client CLI build fails on Windows
Magnus Ihse Bursie
ihse at openjdk.org
Tue Mar 4 10:26:27 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.
LGTM
-------------
Marked as reviewed by ihse (Reviewer).
PR Review: https://git.openjdk.org/skara/pull/1707#pullrequestreview-2656831758
More information about the skara-dev
mailing list