Open akrmn opened 6 months ago
From my perspective, it's expected that current assistants don't know about the platform suffix, but it's a bug that they crash. The existence of a "bad" release should not prevent people from installing "good" ones.
So while I do want us to move towards supporting platform versions, I think the most urgent fix would be to change that code to ignore/skip versions that don't have the expected artifact(s), rather than die when one exists.
To clarify: the bug I wanted to raise is "The daml install
command fails if there exists a version it cannot parse on GitHub, even when trying to install one that does parse."
get.daml.com
is incidental here.
Update: this bug doesn't currently occur because 1. Gary removed the "bad" releases (those where none of the artifacts matched the expected patterns) and 2. ensured that all releases include both the expected patterns and the newer patterns with processor architectures. If we ever stop producing the artifacts with the "plain" patterns (those that don't mention processor architecture) we will see this bug again, so, as Gary stated,
the most urgent fix would be to change that code to ignore/skip versions that don't have the expected artifact(s), rather than die when one exists.
Found by @garyverhaegen-da
Indeed, this function in daml-assistant expects the suffix
-linux.tar.gz
in at least one of the assets listed on github and fails otherwisehttps://github.com/digital-asset/daml/blob/540a746043ec2fd84b41fb5b9a521ac6ea96bf51/daml-assistant/src/DA/Daml/Assistant/Version.hs#L469-L476
It's a simple fix to extend this to support suffixes that include the processor architecture, which would fix the issue with
get.daml.com
, but I'm not sure ifdaml install <sdk>
will work for existing installations of daml