I think you want to use --single-branch instead of --depth 1; the latter
only overrides top-level files, leaving the remaining files on whatever
version you checked out previously.
https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt
On 10/09/2022 16:08, Jun Qin wrot
Thanks Chesnay,
I wanted to check out the tagged release 1.15.1. I did it in this way:
git clone --depth 1 --branch release-1.15.1 g...@github.com:apache/flink.git
This seems cause the problem. With the same java/maven, I can build the branch
1.15.
> On Sep 9, 2022, at 11:58 PM, Chesnay Sch
hmm...we've only seen that error in older Flink version:
https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/flinkdev/ide_setup/#compilation-fails-with-cannot-find-symbol-symbol-method-defineclass-location-class-sunmiscunsafe
Please double-check whether you actually checked out 1.15.