-
-
Notifications
You must be signed in to change notification settings - Fork 301
feat: add step cli #1228
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
base: master
Are you sure you want to change the base?
feat: add step cli #1228
Conversation
b1be4e2 to
614904f
Compare
|
Hi thanks for the discussion. I think we've covered similar scenarios in the past. The strategy only looks up the version, then you can produce any URL you like given the resolved latest version. I feel like I'm missing something can you explain it with an example? I was unsure why there's a URL fragment too. Alex |
|
The version lookup doesn't work when the strategy isn't detected correctly. As far as I could tell from the code, the strategy is derived from the URL. Therefore, I added the fragment which allows the code to detect the github strategy. |
|
To support what Alex mentioned, the version strategy is used only to find the version, you can download from anywhere once you have the version. Have a look at Hashicorp binaries in Edit: I think the part you've missed is |
614904f to
2787141
Compare
|
@rgee0 awesome, thank you! This works flawlessly and is exactly what I was looking for! I pushed the fix. |
|
Is there anything else missing in this PR? |
Signed-off-by: Jan Christoph Ebersbach <jceb@e-jc.de>
2787141 to
4bed201
Compare
AI Pull Request OverviewSummary
Next steps
Summary per fileSummary per file
Overall AssessmentOverall AssessmentThe implementation correctly adds step CLI support with appropriate testing and documentation updates. The custom URL handling for non-GitHub hosting is functional but introduces maintenance risks. The code follows existing patterns and the changes are isolated to the expected files. No regressions apparent, but the approach highlights a gap in arkade's flexibility for external hosting scenarios. Detailed ReviewDetailed ReviewREADME.md
pkg/get/get_test.go
pkg/get/tools.go
General Concerns
Recommendations
AI agent details. |
Description
Add step cli.
FYI: step cli assets are hosted on the company's servers while source code and releases are hosted at github. I didn't see a way to make arkade handle such scenario well. If it was possible to specify the versioning strategy explicitly, instead of deriving it from the URL template, it would a bit cleaner. I opted for the most simple approach of adding an anchor to the URL that matches the github version strategy. I created #1229 to track the issue.
Motivation and Context
design/approvedby a maintainer (required)How Has This Been Tested?
If updating or adding a new CLI to
arkade get, run:Types of changes
Documentation
./arkade get --format markdown./arkade install --helpChecklist:
git commit -s