After merging #3936 and bumping our MSRV to 1.81.0 we have encountered a performance regression in one of our release steps that executes cargo package. This appears to be linked to rust-lang/cargo#13960 which made cargo package interact with git even when the --allow-dirty flag is passed. Previously that flag disabled any git actions from the cargo package command.
We need to explore potential ways around this until the issue is fixed. In local testing removing the .git directory substantially improves performance, but we need to confirm that the diff between the packaged SDKs isn't impacted by this change.