From 3fff33e24968a7d6861223c1ef83a4a1a7ca0cba Mon Sep 17 00:00:00 2001
From: Trask Stalnaker <trask.stalnaker@gmail.com>
Date: Mon, 7 Mar 2022 21:06:02 -0800
Subject: [PATCH] Disable testLatestDeps dependency cache (#5520)

---
 .github/workflows/test-latest-deps.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/test-latest-deps.yml b/.github/workflows/test-latest-deps.yml
index e0c4421d88a4..88b68fac24b7 100644
--- a/.github/workflows/test-latest-deps.yml
+++ b/.github/workflows/test-latest-deps.yml
@@ -45,4 +45,7 @@ jobs:
         uses: gradle/gradle-build-action@v2
         with:
           arguments: test -PtestLatestDeps=true ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
-          cache-read-only: ${{ inputs.cache-read-only }}
+          # testLatestDeps dependencies bundle is over 2gb, which causes restoring it to fail with:
+          #     RangeError [ERR_OUT_OF_RANGE]: The value of "length" is out of range.
+          #     It must be >= 0 && <= 2147483647. Received 2299528741
+          cache-read-only: true