Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Closed
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
3 changes: 2 additions & 1 deletion lib/bacalhau.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export async function install () {
{ platform: 'darwin', arch: 'arm64', asset: `bacalhau_${DIST_TAG}_darwin_arm64.tar.gz` },
{ platform: 'linux', arch: 'x64', asset: `bacalhau_${DIST_TAG}_linux_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm64', asset: `bacalhau_${DIST_TAG}_linux_arm64.tar.gz` },
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` }
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` }
Comment on lines +24 to +25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would you mind keeping this list sorted by platform? (Add the new line before the win32 entry, not after.)

Suggested change
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` },
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` }
{ platform: 'linux', arch: 'arm', asset: `bacalhau_${DIST_TAG}_linux_arm6.tar.gz` },
{ platform: 'win32', arch: 'x64', asset: `bacalhau_${DIST_TAG}_windows_amd64.tar.gz` }

Comment on lines +24 to +25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see that Bacalhau supports both Arm6 and Arm7. Should we support both?

FWIW, in this discussion from 2017, they say

On the Raspberry 2 although it’s architecture is arm7 raspbian only supports arm6 by now so be sure to download that version as is explained in the getting started guide. If you want to use arm7 binaries with the raspberry PI 2 you can try other distributions like archlinux or ubuntu core and the arm7 download of OF but this is still not very well tested so some changes might be required to the original install scripts.

I also found this official blog post from 2022 which provides detailed explanations about different ARM versions in different Raspberry Pi versions:
https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/

My understanding is that rPi users have two options:

  • Run an older version of the OS in arm6 mode (32bit)
  • Run a newer version of the OS in arm64 mode (64bit)

rPi models starting from rPi3 and rPi Zero 2 support arm64.

In that light:

  • I am questioning whether we need to support 32bit ARM at all.
  • If we want to support 32bit ARM, then arm6 is the option that gives us the best compatibility.

]
})
}
Expand Down