Skip to content

Fix architecture on Linux aarch64#17

Merged
jdx merged 1 commit into
mise-plugins:mainfrom
danberindei:fix/linux-aarch64
Apr 15, 2026
Merged

Fix architecture on Linux aarch64#17
jdx merged 1 commit into
mise-plugins:mainfrom
danberindei:fix/linux-aarch64

Conversation

@danberindei

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the download_release function in lib/utils.bash to map the aarch64 architecture to arm64 for release file naming. Feedback suggests improving the function's robustness by declaring variables such as ARCH, OS, and RELEASE_FILE as local to avoid global scope conflicts and potential side effects in the shell environment.

Comment thread lib/utils.bash
Comment on lines +48 to +50
if [ "$ARCH" == "aarch64" ]; then
ARCH="arm64"
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The variables ARCH, OS, and RELEASE_FILE are not declared as local within the download_release function. In asdf plugins, which are often sourced into the main shell process, global variables can lead to unexpected side effects or conflicts with other plugins or the user's environment. It is recommended to add these variables to the local declaration at the beginning of the function (line 37) to ensure they are properly scoped.

@jdx jdx merged commit 6708947 into mise-plugins:main Apr 15, 2026
1 of 5 checks passed
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.

2 participants