Git Product home page Git Product logo

asdf-yq's Introduction

Hi there, I'm Andy ๐Ÿ‘‹

I'm a huge fan of all things open source. I love Kubernetes, and I love building great infrastructure and leading teams.

Contribution Stats

asdf-yq's People

Contributors

devholic avatar jimmidyson avatar log2 avatar mathew-fleisch avatar reegnz avatar sanderginn avatar superq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

asdf-yq's Issues

yq version scheme has changed.

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

Can't list older yq verions

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.

Version handling bug on ARM

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.