Indeed --project-root
is problematic because it can’t pick the correct SDK version. Using the DAML_PROJECT
environment variable is the correct way to set the project path when using the daml
assistant:
DAML_PROJECT="path-to-my-project" daml build