FileCollection iteration order is not stable accross different operating systems #29321
Labels
a:bug
closed:not-fixed
Indicates the issue was not fixed and is not planned to be
in:configuration-model
lazy api, domain object container
Current Behavior
Iterating a
FileCollection
yields different results depending the operating system the build is run on.Expected Behavior
Iterating a
FileCollection
should be stable, no matter what the operating system is.This is especially important for
@Classpath
inputs where the order matters.Context (optional)
Gradle community slack thread: https://www.linen.dev/s/gradle-community/t/18849228/is-the-iteration-order-of-a-filecollection-predictable#9f987382-a54f-493a-89c5-3474e22a97dd
Steps to Reproduce
I put a reproducer here. The gist of it is:
The GitHub action fail on linux while it succeeds on MacOS (action run)
Gradle version
8.7
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: