bazel_7: Add regression test for empty lockfiles

+7
+7
pkgs/development/tools/build-managers/bazel/bazel_7/default.nix
··· 542 542 # second call succeeds because it defers to $out/bin/bazel-{version}-{os_arch} 543 543 hello_test 544 544 545 + ## Test that the GSON serialisation files are present 546 + gson_classes=$(unzip -l $(bazel info install_base)/A-server.jar | grep GsonTypeAdapter.class | wc -l) 547 + if [ "$gson_classes" -lt 10 ]; then 548 + echo "Missing GsonTypeAdapter classes in A-server.jar. Lockfile generation will not work" 549 + exit 1 550 + fi 551 + 545 552 runHook postInstall 546 553 ''; 547 554