I have an application that uses the commit hash from when it gets built (via an environment variable from a build.rs script). However, if I build my application, and then checkout a different commit which otherwise has the same code, a subsequent build doesn't build anything, since the code is the same, and the application still uses the old git hash, since it wasn't rebuilt.
Is there a way I can get it to do a new build when the git commit changes?