Skip to content
Snippets Groups Projects
Commit ae4589b2 authored by Krzysztof Wilczyński's avatar Krzysztof Wilczyński Committed by Andrew Newdigate
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent ca326af9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -71,7 +71,7 @@ To keep `.tool-versions` in sync with `.gitlab-ci.yml`, there is a helper script
 
## `asdf` plugins don't return versions as expected
 
In order to avoid dependencies, many `asdf` plugins rely on basic unix text utilities like `sed` and `awk` to parse JSON. Many rely on the fact that responses from the GitHub API are pretty-printed JSON, not compressed JSON. However, the GitHub API will only pretty-print JSON when it detects the user-agent as being `curl`. For other user-agents, the response will be compressed for efficiency.
To avoid installing dependencies, `asdf` plugins often rely on basic Unix text processing utilities like `grep`, `sed` and `awk` to parse JSON. Many rely on the fact that responses from the GitHub API are pretty-printed JSON, not minimised (or machine parsable) JSON. However, the GitHub API will only pretty-print JSON when it detects the User-Agent request header as being `curl`. For other user agents, the response will be minimised for efficiency.
 
Ensure that you haven't overridden your `curl` user-agent on your workstation.
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment