I'm a huge fan of all things open source. I love Kubernetes, and I love building great infrastructure and leading teams.
sudermanjr / asdf-yq Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Launching asdf list-all yq
shows only first version of yq, 0.1
, instead of all versions.
In fact, script list-all
should enumerate all versions on the same line, separated by spaces, instead of different lines (thus, using \n
as a separator).
As of v4.1.0, yq has started prepending a "v" to release names. This causes the plugin to fail to return the proper version for asdf latest yq
.
On the plus side, this isn't a major issue since it's still possible to install the new versions without error.
$ asdf latest yq
4.0.0
$ asdf list-all yq
2.1.2
2.2.0
2.2.1
2.3.0
2.4.0
2.4.1
3.0.0-beta
3.0.1
3.1.0
3.1.1
3.1.2
3.2.0
3.2.1
3.2.3
3.3.0
3.3.1
3.3.2
3.3.4
3.4.0
3.4.1
4.0.0-alpha1
4.0.0-alpha2
4.0.0-beta1
4.0.0-beta2
4.0.0
v4.1.0
v4.2.0
v4.2.1
v4.3.0
v4.3.1
Since yesterday (likely after #4) I've started getting this error from this plugin:
~/.asdf/plugins/yq/bin/install: line 50: v4: unbound variable
$ cat .tool-versions
yq v4.6.0
$ asdf install yq
/Users/vs/.asdf/plugins/yq/bin/install: line 38: v4: unbound variable
Any ideas?
Let me know if you need any more details in order to troubleshoot this.
I need to install yq 2.4.1 because some code I'm using breaks on later versions (and I'm not in a position to change the code).
The plugin should return all past versions when listing versions so I can discover what versions are available with asdsf.
Listing all the installable versions is important for me as I've built tools on top of asdf like https://github.com/reegnz/asdfzf that rely on that information.
On ARM Macs, yq installation fails when using the latest official release tag.
Installation fails if the version tag contains the 'v'.
When I remove the v, asdf installs yq correctly.
$ cat .tool-versions
yq v4.40.2
$ asdf install
/Users/spremraj/.asdf/plugins/yq/bin/install: line 53: v4: unbound variable
$ cat .tool-versions
yq 4.40.2
$ asdf install
Creating bin directory
Downloading yq from https://github.com/mikefarah/yq/releases/download/v4.40.2/yq_darwin_arm64 to /Users/spremraj/.asdf/installs/yq/4.40.2/bin/yq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9.8M 100 9.8M 0 0 1586k 0 0:00:06 0:00:06 --:--:-- 1438k
Output of asdf info
$ asdf info
OS:
Darwin trv9127 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64 arm Darwin
SHELL:
zsh 5.9 (x86_64-apple-darwin22.0)
BASH VERSION:
5.2.15(1)-release
ASDF VERSION:
v0.12.0
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/spremraj/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/spremraj/.asdfrc
ASDF INSTALLED PLUGINS:
yq https://github.com/sudermanjr/asdf-yq.git master 772992f
Trying to install versions up until this release on M1-powered macs will fail because the build does not exist. The amd64
build should be installed instead.
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.