antiarchitect / asdf-kops Goto Github PK
View Code? Open in Web Editor NEWKops plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
Kops plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
this commit broke the plugin by changing the mode of the install script to 644. Please make it executable again.
Thank you!
kops
releases now use v
in front of a version which breaks the download url here. They are now of the format:
https://github.com/kubernetes/kops/releases/download/v1.15.1/kops-darwin-amd64
for instance.
Shall I open a PR and maybe try without the v
for legacy support, and then with if not found?
The list-all function looks to be incorrectly parsing the release results from the github api:
https://github.com/Antiarchitect/asdf-kops/blob/master/bin/list-all#L11-L18
$ asdf plugin-update kops
Updating kops...
Already up to date.
$ asdf list-all kops
"1.7.0.alpha.1.z
"1.7.0.beta.1.z
"1.7.0.z
"1.7.1.z
"1.8.0.alpha.1.z
"1.8.0.beta.1.z
"1.8.0.z
"1.8.1.z
"1.9.0.alpha.1.z
"1.9.0.beta.1.z
"1.9.0.alpha.2.z
"1.9.0.beta.2.z
"1.9.0.alpha.3.z
"1.9.0.z
"1.9.1.z
"1.9.2.z
"1.10.0.alpha.1.z
"1.10.0.beta.1.z
"1.10.0.z
"1.10.1.z
"1.11.0.alpha.1.z
"1.11.0.beta.1.z
"1.11.0.z
"1.11.1.z
"1.12.0.beta.1.z
"1.12.0.alpha.2.z
"1.12.0.beta.2.z
"1.12.0.alpha.3.z
"1.13.0.alpha.1.z
"1.14.0.alpha.1.z
I think you can just simplify the snippet above to something like this: https://github.com/marciogm/asdf-crystal/blob/master/bin/list-all
$ curl -s https://api.github.com/repos/kubernetes/kops/releases | sed -n 's/.*"tag_name": "\(.*\)",/\1/p' | sed 'y/v/ /' | sort -t. -n -k2,3
1.7.0
1.7.0-alpha.1
1.7.0-beta.1
1.7.1
1.8.0
1.8.0-alpha.1
1.8.0-beta.1
1.8.1
1.9.0
1.9.0-alpha.1
1.9.0-alpha.2
1.9.0-alpha.3
1.9.0-beta.1
1.9.0-beta.2
1.9.1
1.9.2
1.10.0
1.10.0-alpha.1
1.10.0-beta.1
1.10.1
1.11.0
1.11.0-alpha.1
1.11.0-beta.1
1.11.1
1.12.0-alpha.2
1.12.0-alpha.3
1.12.0-beta.1
1.12.0-beta.2
1.13.0-alpha.1
1.14.0-alpha.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.