Adds alloy to the available tools, taking the total number available to 163
Motivation and Context
[x] I have raised an issue to propose this change, which has been given a label of design/approved by a maintainer (required)
Closes #1137
How Has This Been Tested?
Functional
➜ arkade git:(addAlloy) ✗ make build
go build
➜ arkade git:(addAlloy) ✗ ./arkade get alloy
Downloading: alloy
2024/11/13 08:06:01 Looking up version for alloy
2024/11/13 08:06:01 Found: v1.4.3
Downloading: https://github.com/grafana/alloy/releases/download/v1.4.3/alloy-darwin-arm64.zip
66.18 MiB / 66.18 MiB [---------------------------------------------------------------] 100.00%
/var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-3445607407/alloy-darwin-arm64.zip written.
Name: alloy-darwin-arm64.zip, size: 693906042024/11/13 08:06:07 Extracted: /var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-3445607407/alloy-darwin-arm64
2024/11/13 08:06:07 Copying /var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-3445607407/alloy-darwin-arm64 to /Users/rgee0/.arkade/bin/alloy
Wrote: /Users/rgee0/.arkade/bin/alloy (270.1MB)
# Add arkade binary directory to your PATH variable
export PATH=$PATH:$HOME/.arkade/bin/
# Test the binary:
/Users/rgee0/.arkade/bin/alloy
# Or install with:
sudo mv /Users/rgee0/.arkade/bin/alloy /usr/local/bin/
👏 Say thanks for arkade and sponsor Alex via GitHub: https://github.com/sponsors/alexellis
./hack/test-tool.sh
➜ arkade git:(addAlloy) ✗ ./hack/test-tool.sh alloy
+ ./arkade get alloy --arch arm64 --os darwin --quiet
+ file /Users/rgee0/.arkade/bin/alloy
/Users/rgee0/.arkade/bin/alloy: Mach-O 64-bit executable arm64
+ rm /Users/rgee0/.arkade/bin/alloy
+ echo
+ ./arkade get alloy --arch x86_64 --os darwin --quiet
+ file /Users/rgee0/.arkade/bin/alloy
/Users/rgee0/.arkade/bin/alloy: Mach-O 64-bit executable x86_64
+ rm /Users/rgee0/.arkade/bin/alloy
+ echo
+ ./arkade get alloy --arch x86_64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/alloy
/Users/rgee0/.arkade/bin/alloy: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=66cb15f07c241b1d117f57315220faeb0e2cf551, for GNU/Linux 3.2.0, stripped
+ rm /Users/rgee0/.arkade/bin/alloy
+ echo
+ ./arkade get alloy --arch aarch64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/alloy
/Users/rgee0/.arkade/bin/alloy: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=7749f52da5736b617729dda8bad4b1deaa578368, for GNU/Linux 3.7.0, stripped
+ rm /Users/rgee0/.arkade/bin/alloy
+ echo
+ ./arkade get alloy --arch x86_64 --os mingw --quiet
+ file /Users/rgee0/.arkade/bin/alloy.exe
/Users/rgee0/.arkade/bin/alloy.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
+ rm /Users/rgee0/.arkade/bin/alloy.exe
+ echo
make e2e
➜ arkade git:(addAlloy) ✗ make e2e >> test.out
CGO_ENABLED=0 go test github.com/alexellis/arkade/pkg/get -cover --tags e2e -v
...
PASS
coverage: 61.9% of statements
ok github.com/alexellis/arkade/pkg/get 15.185s coverage: 61.9% of statements
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Documentation
[x] I have updated the list of tools in README.md if (required) with ./arkade get --format markdown
[ ] I have updated the list of apps in README.md if (required) with ./arkade install --help
Checklist:
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
Description
Adds alloy to the available tools, taking the total number available to 163
Motivation and Context
design/approved
by a maintainer (required) Closes #1137How Has This Been Tested?
Functional
./hack/test-tool.sh
make e2e
Types of changes
Documentation
./arkade get --format markdown
./arkade install --help
Checklist:
git commit -s