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 issues related to architecture-namespaced binaries #26453

Merged
merged 7 commits into from
Feb 20, 2025

Conversation

sgress454
Copy link
Contributor

@sgress454 sgress454 commented Feb 19, 2025

For #26496
This PR fixes a couple of issues introduced when we started releasing separate amd64 and arm64 versions of our windows and linux binaries:

  • Adds the architecture string to the download url in the fleetctl npm package
  • Updates the goreleaser templates to only add the architecture to non-macos (i.e. windows and linux) packages
  • Updates the script that the website uses to download fleetctl

I did a weak test of the fleetctl npm installer by hardcoding what was returned for my system type and at least verified that the download url worked. Doing some more checks on VMs now.

Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

Left some comments.

# Determine architecture (x86_64 or arm64)
ARCH="$(uname -m)"
# Standardize x86_64 to amd64
if [ $ARCH != "arm64" ]; then ARCH="amd64"; fi
Copy link
Member

Choose a reason for hiding this comment

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

Probably safer to also check for the four possible values for arm64: aarch64, aarch64_be, armv8b and armv8l (see here)?

PS: My Raspberry Pi returns aarch64 for uname -m.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, now you'll be able to run the Fleet website with online preview from your Raspberry Pi! 🥳

Copy link
Member

Choose a reason for hiding this comment

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

lol, sorry, probably not a big deal, but safe to fix in case we replicate/copy this script.

Copy link
Member

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

LGTM!

@sgress454 sgress454 merged commit 39e9c0a into main Feb 20, 2025
7 checks passed
@sgress454 sgress454 deleted the sgress454/26444-fix-fleetctl-npm-download branch February 20, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants