Go: Only use EmitInvalidToolchainVersion
if installed toolchain is >=1.21 && <1.23
#18499
+26
−61