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

Fix get-daml.sh for Linux aarch64 #19958

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/daml-assistant/get-daml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ elif [ "$major" = "2" ] && [ "$minor" -ge "9" ]; then
platform=
;;
linux-aarch64)
platform=-aarch64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code path now always has the platform as empty. We don't support arch64 linux in 2.9 at all right now, so we should just eliminate this case.
I'd remove the case for elif [ "$major" = "2" ] && [ "$minor" -ge "9" ]; then, and change the previous elif [ "$major" = "2" ] && [ "$minor" -le "8" ]; then to simply elif [ "$major" = "2" ]; then

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right sorry, we don't release any aarch64 artifacts in 2.9 is what I mean.

platform=
;;
linux-x86_64)
platform=
Expand All @@ -149,7 +149,7 @@ elif [ "$major" -ge "3" ]; then
platform=-x86_64
;;
linux-aarch64)
platform=-aarch64
Copy link
Collaborator

@raphael-speyer-da raphael-speyer-da Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you want this change, as it looks like for major version 3 and up they do have these platform-specific artifacts, e.g.

https://github.com/digital-asset/daml/releases/tag/v3.2.0-snapshot.20240911.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, we do have these artifacts for 3x, so this part should be undone.

platform=-x86_64
;;
linux-x86_64)
platform=-x86_64
Expand Down