CI broke yesterday with the above error when running `hatch version`. Pinning `hatch<1.16` fixed the problem for us.