HF RL Explorer

Non-deterministic interface{} vs any in generated Go code

Non-deterministic interface{} vs any in generated Go code: a task in LegoFlow-SWE (Harbor dataset). When gqlgen generates Go code from a schema and associated Go types, the output occasionally flips between interface{} and any for the same type across different runs, even with identical inputs…

The task

When gqlgen generates Go code from a schema and associated Go types, the output occasionally flips between `interface{}` and `any` for the same type across different runs, even with identical inputs. This causes spurious diffs in version control and breaks CI checks that assert no uncommitted changes exist after…

Part of Lego-X/LegoFlow-SWE.