alexellis / arkade

Open Source Marketplace For Developer Tools
https://blog.alexellis.io/kubernetes-marketplace-two-year-update/
MIT License
4.26k stars 289 forks source link

feat: add alloy to tools #1138

Open rgee0 opened 1 week ago

rgee0 commented 1 week ago

Description

Adds alloy to the available tools, taking the total number available to 163

Motivation and Context

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

Documentation

Checklist: