Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple M1, Sonoma 14.7 - when trying to install a snapshot using the daml assistant, attempt is made to fetch non-existing artifact #20058

Open
chrisnorris-da opened this issue Oct 4, 2024 · 1 comment
Assignees
Labels
component/daml-assistant Daml SDK Assistant

Comments

@chrisnorris-da
Copy link

chrisnorris-da commented Oct 4, 2024

Affected Daml version

Daml version used: 2.9.4:

daml version --assistant yes
SDK versions:
  2.9.4  (default SDK version for new projects, daml assistant version)

Bug description

Tool does not resolve to correct artifact based on client arch and os; or rather the artifact is not there, but the tool tries to pull it.

To reproduce

daml install 3.2.0-snapshot.20241002.0

Installing SDK version 3.2.0-snapshot.20241002.0
Downloading SDK release.
Trying to install version via HTTP from Github `daml` repo releases
daml: Failed to download release from https://github.com/digital-asset/daml/releases/download/v3.2.0-snapshot.20241002.0/daml-sdk-3.2.0-snapshot.20240927.13322.0.v0ccfc472-macos.tar.gz.
  details: Status {statusCode = 404, statusMessage = "Not Found"}

Expected behavior

Expect to see a message that the artifact for the os and arch is not in the repo releases.

Additional context

On MacBook-Pro, Apple M1, Sonoma 14.7.
Command run from zsh with:

uname -m
arm64

uname -s
Darwin

If I use curl -sSL https://get.daml.com/ | sh -s 3.2.0-snapshot.20241002.0 it appears to work fine, but the script contains logic which sets the platform to x86_64 for macos-arm64

 case "$OS-$(uname -m)" in
    macos-arm64)
      # TODO
      #platform=-aarch64
      platform=-x86_64
      ;;
    macos-x86_64)
      # TODO
      platform=-x86_64
      ;;

If this workaround is acceptable then the logic in the assistant should be aligned in my view and I'd expect to download daml-sdk-3.2.0-snapshot.20240927.13322.0.v0ccfc472-macos-x86_64.tar.gz using both the scipt and assistant.

@chrisnorris-da
Copy link
Author

Looks like this was reported previously (#18714 and #18766) - I'm not sure #19900 has completely addressed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/daml-assistant Daml SDK Assistant
Projects
None yet
Development

No branches or pull requests

2 participants