Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 修改pd源码编译之后,部署到集群失败

[TiDB Usage Environment] Production Environment
[TiDB Version] v5.3.0
[Reproduction Path] I would like to ask for some advice. I want to modify the PD source code to add a log (for example) and then update it to the already deployed cluster. The current approach is:
- git clone the source code
- Switch to the v5.3.0 branch: git checkout origin/release-5.3
- Modify the source code
- Compile: make build
The binary file pd-server generated this way will report an error when replacing the PD in the cluster using tiup, because the version injected during compilation is incorrect. Is there any documentation on this?