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

feat: add alloy to tools #1138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: add alloy to tools #1138

wants to merge 1 commit into from

Conversation

rgee0
Copy link
Contributor

@rgee0 rgee0 commented Nov 13, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Documentation

  • 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:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have tested this on arm, or have added code to prevent deployment

Signed-off-by: Richard Gee <[email protected]>
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.

Add Grafana Alloy to arkade get
1 participant