Determining if a Go program has changed from a previous build
In a CI/CD system, I need a way to check if the hash of the source code for a Go executable has changed. I have the source code and the executable. I only want to deploy the built executable if it’s functionally different from the last one that was deployed (“functional” meaning the change actually has an impact, i.e. not just a different timestamp).