zed/script
Aditya Kumar 45d4de75b3
Add jq as a dependency for Linux script for Arch Linux (#13569)
## Error
```sh
./script/install-linux 

+ [[ 0 -gt 0 ]]
+ export ZED_CHANNEL=dev
+ ZED_CHANNEL=dev
++ pwd
+ export 'ZED_UPDATE_EXPLANATION=You need to fetch and rebuild zed in /home/adityakrcodes/repos/zed'
+ ZED_UPDATE_EXPLANATION='You need to fetch and rebuild zed in /home/adityakrcodes/repos/zed'
+ script/bundle-linux
+ getopts h flag
+ export ZED_BUNDLE=true
+ ZED_BUNDLE=true
+ channel=dev
++ script/get-crate-version zed
script/get-crate-version: line 16: jq: command not found <-- ERROR
+ version=
```
The script fails to install zed on Arch Linux due to a missing
dependency, `jq`.
## My machine info
OS: Arch Linux
Kernel: 6.6.34-1-lts 
WM: dwm 
Terminal: kitty
CPU: Ryzen 5 5500U with Radeon Graphics
GPU: AMD ATI 04:00.0 Lucienne 
Memory: 16 GB

## Error Description
The error occurs when running the script in `script/install-linux`,
which is unable to find the `jq` package, which is not installed by
default on the machine.
## Solution
To resolve this issue, you can install `jq` independently by running
`sudo pacman -S jq`. Alternatively, I have updated script `script/linux`
to include `jq` as a dependency ([link to the
commit](2349ad111f)),
ensuring it is installed automatically when running the initial script
for system libraries.

Release Notes:

- N/A
2024-06-27 09:58:53 -06:00
..
danger danger: Check PR titles (#13053) 2024-06-14 11:18:41 -04:00
eula Update EULA (#12858) 2024-06-10 16:09:18 -04:00
flatpak Fix Flatpak desktop entry (#13019) 2024-06-13 20:23:49 -04:00
lib
licenses
update_top_ranking_issues Do not encourage additional ignored labels 2024-06-12 10:57:33 -04:00
analyze_highlights.py
bootstrap
bump-extension-cli
bump-nightly
bump-zed-minor-versions
bump-zed-patch-version
bundle-linux Keep symbol names in bundled linux binaries (#13006) 2024-06-13 12:40:52 -07:00
bundle-mac
check-licenses Stop using xtask for clippy (#13223) 2024-06-18 13:49:44 -06:00
clear-target-dir-if-larger-than
clippy Stop using xtask for clippy (#13223) 2024-06-18 13:49:44 -06:00
collab-flamegraph
crate-dep-graph
create-migration
deploy-collab
deploy-postgrest
draft-release-notes
drop-test-dbs
generate-eula-rtf
generate-licenses Remove extra cargo install cargo-about (#13077) 2024-06-14 18:02:20 -04:00
get-changes-since
get-crate-version
get-preview-channel-changes
get-released-version
histogram
import-themes
install-linux linux make install (#12870) 2024-06-10 20:43:13 -06:00
install.sh Dealing with missing arm architectures (#13349) 2024-06-21 10:46:25 +03:00
kube-shell
linux Add jq as a dependency for Linux script for Arch Linux (#13569) 2024-06-27 09:58:53 -06:00
metal-debug
randomized-test-ci
randomized-test-minimize
reset_db
run-local-minio
seed-db
sqlx
squawk
storybook
symbolicate
trigger-release
upload-extension-cli
upload-nightly
what-is-deployed
zed-local Allow canceling in-progress language server work (e.g. cargo check) (#13173) 2024-06-17 17:58:47 -07:00