When deploying the same dar across multiple environment, I think it would be critical that the full package id be the same across the environments. In this way, the client code would reference the same <package_name>-<package_id>
across all environments. That way the package-id could be checked into source code. Otherwise would the package id be set in an environment variable?
What is the best way to ensure this is the case?
Is it normal that the dar would be compiled on a single build server, and then the identical dar is deployed to all servers? Or would it be normal to run daml build
on all servers?
Is it possible that daml build on the same source code compiles to a different package id? For example if the sdk version is different or there are other environment differences, would that produce a different package id?