You Tested a Different Binary: Artifacts, Verification, and Promotion
If each environment builds its own copy, the thing you tested and the thing you deployed are two different files that happen to share a version number.
If each environment builds its own copy, the thing you tested and the thing you deployed are two different files that happen to share a version number.