-
Notifications
You must be signed in to change notification settings - Fork 155
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
syntax error, unexpected QQSTRING_START with jq 1.3 from Ubuntu 14.04 repos #166
Comments
From FAQ - General Questions in the
So I imagine that, given a hyphenated key, such as android-prepare-vendor/scripts/common.sh Line 81 in e853d17
Whereas this bracketed syntax is still valid and should work with previous versions of $ jq -r ".[\"$query\"] | .[]" "$conf_file"
# which after parameter expansion will become:
$ jq -r .["supported-apis"] | .[] ./file... |
The scripts, in my case
./execute-all.sh
, produce the following error upon invokingjq
version 1.3:Sure, the latest release of
jq
is 1.6, but version 1.3 ships with the official repositories in the environment recommended by the Android team: Ubuntu LTS 14.04 - Trusty...and I didn't notice
./hostTools/Linux/bin/jq
sitting in this repo until I already started digging in.Seems like there was some confusion regarding which is the correct syntax (see jqlang/jq#273), but it seems that wrapping the object accessor is at least more correct and may save some people valuable debugging time when they start to build the AOSP tree.
Attached is a shell script to reproduce the error when executed in an ubuntu:14.04 Docker image.
The text was updated successfully, but these errors were encountered: