Invalid registry source archive checksum

Swift 6.3.3, Linux Mint 22.3 x86_64
Project/branch: Colors the old tags backed up.
When I run the command swift package --cache-path ./.spm-cache --only-use-versions-from-resolved-file resolve, I get the error invalid registry source archive checksum. If I omit the --cache-path parameter, it works without an error. curl https://codeberg.org/api/packages/Cyberbeni/swift/Cyberbeni/LruCache/1.1.3 -H Accept:application/vnd.swift.registry.v1+json returns the correct checksum, not the "expected" one from the error.

edit: Turns out I just had to delete ~/.config/swiftpm/security/fingerprints/Cyberbeni.LruCache.json because it had the old values from when I was testing locally built package manager.