fix macOS Bazel cache (#10795)

macOS filesystems have been case-insensitive by default for years, and
in particular our laptops are, so if we want the cache to work as
expected, CI should be too.

Note: this does not apply to Nix, because the Nix partition is a
case-sensitive image per @nycnewman's script on laptops too.

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Gary Verhaegen 2021-09-07 13:31:57 +02:00 committed by GitHub
parent ed99fe5aa5
commit 4093bbd58c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ reset_cache() {
fi
rm -f "${file}.sparseimage"
hdiutil create -size 200g -fs 'Case-sensitive APFS' -volname "$file" -type SPARSE "$file"
hdiutil create -size 200g -fs APFS -volname "$file" -type SPARSE "$file"
mkdir -p $mount_point
hdiutil attach "${file}.sparseimage" -mountpoint "$mount_point"
echo "Done."