Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

yq command not found

Ronak Toshniwal January 3, 2023

HI

image: atlassian/default-image:3
pipelines:
#pull-requests:
branches:
'Dev':
- step:
script:
#Assign variables
- export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
- export SFDX_AUTOUPDATE_DISABLE=false
- export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
- export SFDX_DOMAIN_RETRY=300
- export SFDX_DISABLE_APP_HUB=true
- export SFDX_LOG_LEVEL=DEBUG
- export DEPLOYDIR=src
- export TESTLEVEL=RunLocalTests
#Create sfdx directory
- mkdir ~/sfdx
#Install Salesforce CLI
#By default, the script installs the current version of Salesforce CLI. To install the release candidate, set the DX_CLI_URL_CUSTOM local variable to the appropriate URL
#- wget -qO- ${DX_CLI_URL_CUSTOM-$CLIURL} | tar xJ -C ~/sfdx --strip-components 1
- npm install sfdx-cli
- export PATH=~/sfdx/bin:$PATH
- sfdx --version
- sfdx plugins --core

# Install utilities

#- pip install yq
- npm install yq
- yq --version
 

giving this error

image

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2023

Hi @Ronak Toshniwal ,

Do you have a documentation page for the yq tool you are trying to install? I searched on the internet, and I found the following two tools:

1st: https://mikefarah.gitbook.io/yq/

2nd: https://kislyuk.github.io/yq/

Are you trying to install one of these two?

 

If you want to install the first one, please check the installation instructions here:

I tried doing the installation using the following command that is provided there:

wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq

And then the yq --version command provides output.

 

If you want to install the second one, please check here:

You will first need to install pip3 with

apt update
apt install python3-pip

and then you can use the command pip3 install yq to install yq. Please also note that the documentation for this tool mentions that before using yq, you also have to install its dependency, jq. A link with instructions is provided in the doc.


If you are trying to install a different tool called yq, it would be useful to have its documentation page.

Kind regards,
Theodora

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2023

Welcome to the Atlassian Community!

This means that your build environment (the shell within which the build is being run) does not include the path in which yq is installed, or the install of yq is failing.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events