azmcode / asdf-jq Goto Github PK
View Code? Open in Web Editor NEWThis project forked from focused-labs/asdf-jq
License: MIT License
This project forked from focused-labs/asdf-jq
License: MIT License
I've tried debugging this as much as I could, but I simply don't have access to a macOS system to debug effectively.
Every now and then (intermittently) we get this error:
curl: (22) The requested URL returned error: 403
Given version '1.6' did not match any releases. Try list-all to see available options
No URL found for release 1.6
Malformed URL
This happened before when the repo was moved โ then the reason probably was the missing repo.
However, it keeps happening now even after the recent fix. So I wonder if something else is not working.
Is there a way to surface more clearly which server is responding with 403
here? I can't make head or tails of this error message.
Not sure if there is a workaround that the plugin can do for this problem here:
jqlang/jq#2430
curl -fsS https://api.github.com/repos/stedolan/jq/releases
{
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/5101141/releases",
"documentation_url": "https://docs.github.com/v3/#http-redirects"
}
I'm seeing the payload from https://api.github.com/repos/stedolan/jq/releases
be returned in minimized fashion. The regex in https://github.com/AZMCode/asdf-jq/blob/master/bin/list-all#L24 works when the payload is well formatted json, but does not work when it is minimized (the greedy operator matches too much).
My regex is not all that great, but locally the following pattern works much better:
grep -oE "tag_name\": *\"jq-[0-9]+.[0-9]+[a-z]*[0-9]*\"," | sed 's/tag_name\": *\"//;s/\",//'
~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic
~ asdf plugin-add jq https://github.com/AZMCode/asdf-jq.git
~ asdf install jq 1.6
~ jq --version
jq-1.6
~ asdf install jq 1.7rc1
curl: (3) URL using bad/illegal format or missing URL
~ asdf list jq
*1.6
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.