I upgraded our project to JDK 21 and so I did with the CircleCI configuration. In particular I replaced cimg/openjdk:17.0.2 with cimg/openjdk:21.0.0. Since then the checkout step for the Java build job fails with the following error:
Directory (/home/circleci/project) you are trying to checkout to is not empty and not a git repository
Another job that builds some docs without any Java has no problem checking out the same directory.
What causes this issue? Is the JDK 21 image handling some things differently?
I’ve just re-run the test I built for this issue and it seems that there has been a new image published, that has removed the extra file from /home/circleci/project.