Skip to content

Commit

Permalink
bazel_6: Add check to assert GSON serialization works
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Apr 8, 2024
1 parent 7cb1b52 commit 6528de1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,13 @@ stdenv.mkDerivation rec {
# second call succeeds because it defers to $out/bin/bazel-{version}-{os_arch}
hello_test
## Test that the GSON serialisation files are present
gson_classes=$(unzip -l $($out/bin/bazel info install_base)/A-server.jar | grep -F -c _GsonTypeAdapter.class)
if [ "$gson_classes" -lt 10 ]; then
echo "Missing GsonTypeAdapter classes in A-server.jar. Lockfile generation will not work"
exit 1
fi
runHook postInstall
'';

Expand Down

0 comments on commit 6528de1

Please sign in to comment.