Skip to content

Specifying --project-root overrides the version set in a daml.yaml file #5769

Closed
@da-tanabe

Description

Specifying --project-root overrides the version set in a daml.yaml file while also printing out an incorrect and misleading warning message.

Steps to repro:

$ DAML_SDK_VERSION=0.13.55 daml new quickstart-0.13.55
Created a new project in "quickstart-0.13.55" based on the template "skeleton".
$ daml build --project-root quickstart-0.13.55
Warning: Using DAML SDK version 1.0.1 from DAML_SDK_VERSION enviroment variable instead of DAML SDK version 0.13.55 from daml.yaml config file.
Warning: Using DAML SDK version 1.0.1 from DAML_SDK_VERSION enviroment variable instead of DAML SDK version 0.13.55 from daml.yaml config file.
Warning: Using DAML SDK version 1.0.1 from DAML_SDK_VERSION enviroment variable instead of DAML SDK version 0.13.55 from daml.yaml config file.
$ cd quickstart-0.13.55
Compiling quickstart-0.13.55 to a DAR.
Created .daml/dist/quickstart-0.13.55-0.0.1.dar
$ daml build
DAML SDK 1.0.1 has been released!
See https://github.com/digital-asset/daml/releases/tag/v1.0.1 for details.

Compiling quickstart-0.13.55 to a DAR.
Created .daml/dist/quickstart-0.13.55-0.0.1.dar

The warning in the first instance is also wrong, as I do not have the DAML_SDK_VERSION environment variable set at all (as evidenced by proper behavior when I simply cd into a directory that contains a daml.yaml file).

Additionally, running DAML_SDK_VERSION=0.13.55 daml build --project-root quickstart-0.13.55 appears to still do the correct thing.

Metadata

Assignees

No one assigned

    Labels

    languageLanguage team worklanguage/nowLanguage team priority NOW

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions