Skip to content

Conversation

trulede
Copy link
Contributor

@trulede trulede commented Jun 9, 2025

The install-task.sh script was converting "armv7*" to "arm" in function uname_arch(), checking that "arm" value in uname_arch_check(), and then finally using a case condition based on "armv7" in function get_binaries(). So of course the download would fail.

GO Arch only includes linux/arm variant.

Solution is to fix the get_binaries() function.

fixes #1516

Download tested on PI aarch64, script modified with hardcoded arch as "arm7l". Expected version of task was downloaded.

Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

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

Thank you!

FYI: We originally used https://github.com/goreleaser/godownloader to generate these scripts, but the tool got deprecated, so I think we needed to update the file manually for fixes.

@trulede Can you replicate these changes on website/static/install.sh? We have two copies because originally people fetched from the repo, but nowadays we instruct users to fetch from the website (http://taskfile.dev/install.sh).

@andreynering andreynering added area: releasing Changes related to the release process. area: installer Changes related to the installation script. and removed area: releasing Changes related to the release process. labels Jun 9, 2025
@trulede
Copy link
Contributor Author

trulede commented Jun 9, 2025

@andreynering yes, I've pushed that change. FWIW you don't need godownloader (or similar), the script is good enough in its current state.

@andreynering andreynering merged commit 69fc13b into go-task:main Jun 9, 2025
15 checks passed
andreynering added a commit that referenced this pull request Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: installer Changes related to the installation script.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install script fails on Raspberry Pi with go-task/task crit platform linux/arm is not supported
2 participants