gng
gng copied to clipboard
update brew release
Describe the bug
$ gng wrapper
Fetching the latest Gradle version from services.gradle.org
/home/linuxbrew/.linuxbrew/bin/gng: line 186: python: command not found
curl: (23) Failed writing body
Failed to fetch the version info!
To Reproduce This is happening on a new PC (received in Dec 2021) on which I installed Ubuntu 21.10, then homebrew, then followed the instructions from this repo to install the brew cask gng.
Expected behavior The gradle wrapper in my project should be updated to the latest version.
Screenshots If applicable, add screenshots to help explain your problem.
Shell Info (please complete the following information):
- Shell&Version:
$ bash --version
GNU bash, version 5.1.8(1)-release (x86_64-pc-linux-gnu)
- DEBUG Output:
$ DEBUG=1 gng wrapper
++ export SHELLOPTS
++ readonly 'INFO_COLOR=\033[1;96m'
++ INFO_COLOR='\033[1;96m'
++ readonly 'NO_COLOR=\033[0m'
++ NO_COLOR='\033[0m'
++ readonly 'ERROR_COLOR=\033[0;31m'
++ ERROR_COLOR='\033[0;31m'
++ [[ 1 == 1 ]]
++ trap __errorCallBack__ ERR
+ readonly GRADLEW=gradlew
+ GRADLEW=gradlew
+ declare -a __GNG_CONFIG
++ basename /home/linuxbrew/.linuxbrew/bin/gng
+ readonly SCRIPT_NAME=gng
+ SCRIPT_NAME=gng
+ '[' gng = gng ']'
+ case "${1:-}" in
+ shift
+ bootstrap
+ local _arg_version _arg_distribution_type _arg_destination_dir
+ _arg_version=latest
+ _arg_distribution_type=all
+ _arg_destination_dir=/home/edward/github/edward3h/ethelred_util
+ test 0 -gt 0
+ [[ latest == \l\a\t\e\s\t ]]
+ info 'Fetching the latest Gradle version from services.gradle.org'
+ echo -e '\033[1;96m Fetching the latest Gradle version from services.gradle.org\033[0m\n'
Fetching the latest Gradle version from services.gradle.org
++ curl -m 60 -sSL https://services.gradle.org/versions/current
++ python -c 'import json,sys;obj=json.load(sys.stdin);print obj['\''version'\''];'
/home/linuxbrew/.linuxbrew/bin/gng: line 186: python: command not found
curl: (23) Failed writing body
+ _arg_version=
+ die 'Failed to fetch the version info!'
+ local exit_status=127
+ [[ 1 == 0 ]]
++ caller
+ err 'Failed to fetch the version info!' '(185 /home/linuxbrew/.linuxbrew/bin/gng)'
+ echo -e '\033[0;31mFailed to fetch the version info! (185 /home/linuxbrew/.linuxbrew/bin/gng)\033[0m\n'
Failed to fetch the version info! (185 /home/linuxbrew/.linuxbrew/bin/gng)
+ '[' 127 = 0 ']'
+ exit 127
Additional context
Looking at this repo I can see that the problem may have been fixed with #21, but that is not what I'm getting from brew.
Workaround: check the version manually, specify it to command.