-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./images/linux/scripts/installers/git.sh failed at line 42 #7722
Comments
Hey @xfc. Could you elaborate a bit what you are trying to do? |
We are experiencing the same behavior, while generating ubuntu 22.04 image. |
@xfc, we are aware of this issue and already working on it. |
looks like this curl call is missing at least the |
I have seen the exact same issue, starting today, I am using the "releases/ubuntu22/20230611" tag to re-build a custom image (subset of toolset needed to be installed in our image and we do share the generated image in azure image gallery) |
Yes I noticed the same issue as well... I was actually just investigating it. I can confirm that @mikhailkoliada solution works |
Should be fixed now, please pull updates from main! |
Description
git.sh failed at
runner-images/images/linux/scripts/installers/git.sh
Line 42 in 500995c
with error:
" jq: error (at :1): Cannot index string with string "prerelease"
jq: error (at :1): Cannot index string with string "tag_name"
".
The root cause is at this line:
runner-images/images/linux/scripts/helpers/install.sh
Line 75 in 500995c
A very simple way to reproduce this bug is to run this line (
runner-images/images/linux/scripts/helpers/install.sh
Line 75 in 500995c
{
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/401025/releases?per_page=100",
"documentation_url": "https://docs.github.com/v3/#http-redirects"
}.
Two potential solutions:
runner-images/images/linux/scripts/helpers/install.sh
Line 75 in 500995c
runner-images/images/linux/scripts/installers/git.sh
Line 42 in 500995c
Platforms affected
Runner images affected
Image version and build link
Any.
Is it regression?
No.
Expected behavior
./images/linux/scripts/installers/git.sh ran successfully.
Actual behavior
./images/linux/scripts/installers/git.sh failed.
Repro steps
A one-liner to reproduce the bug is provided in the description section.
The text was updated successfully, but these errors were encountered: