Currently we edit the variable in the source file using sed in the build.sh script. go allows you to set variables at link time using:
go build -ldflags "-X {package}.{ConstName}={value}"
We should adopt this pattern in our build.sh script to prevent changing the source code.
Blog post describing this process.