Skip to content

Commit

Permalink
Again a workaround for SF bug
Browse files Browse the repository at this point in the history
forcedotcom/cli#2445
AllanOricil  is a genius !
  • Loading branch information
nvuillam committed Sep 5, 2023
1 parent 2470cc2 commit afd24b9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

## [4.2.6] 2023-09-05

- Workaround about https://github.com/forcedotcom/cli/issues/2445 by @AllanOricil
## [4.2.5] 2023-09-05

- Downgrade to sfdx-cli until https://github.com/forcedotcom/cli/issues/2445 is solved.
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ ARG SFDX_HARDIS_VERSION=latest

# Install npm packages +install sfdx plugins & display versions
RUN npm install --no-cache yarn -g && \
npm install --no-cache sfdx-cli@${SFDX_CLI_VERSION} -g && \
npm install --no-cache @salesforce/cli@${SFDX_CLI_VERSION} -g && \
cli_path=$(which sf | sed 's/\/bin\/sf/\/lib\/node_modules\/@salesforce\/cli/g') && \
( cd $cli_path && npm install @salesforce/[email protected] --save-exact ) && \
echo 'y' | sfdx plugins:install sfdx-hardis@${SFDX_HARDIS_VERSION} && \
echo 'y' | sfdx plugins:install sfdmu && \
echo 'y' | sfdx plugins:install sfdx-git-delta && \
echo 'y' | sfdx plugins:install sfdx-essentials && \
echo 'y' | sfdx plugins:install texei-sfdx-plugin && \
sfdx plugins && \
sf version --verbose --json && \
rm -rf /root/.npm/_cacache

# Workaround for https://github.com/forcedotcom/salesforcedx-apex/issues/213
Expand Down
3 changes: 2 additions & 1 deletion defaults/ci/azure-pipelines-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- script: |
npm install @salesforce/cli --global
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
cli_path=$(which sf | sed 's/\/bin\/sf/\/lib\/node_modules\/@salesforce\/cli/g')
( cd $cli_path && npm install @salesforce/[email protected] --save-exact )
echo 'y' | sfdx plugins:install sfdx-hardis
echo 'y' | sfdx plugins:install sfdx-essentials
echo 'y' | sfdx plugins:install sfdx-git-delta
Expand Down
3 changes: 2 additions & 1 deletion defaults/ci/azure-pipelines-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
- script: |
npm install @salesforce/cli --global
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
cli_path=$(which sf | sed 's/\/bin\/sf/\/lib\/node_modules\/@salesforce\/cli/g')
( cd $cli_path && npm install @salesforce/[email protected] --save-exact )
echo 'y' | sfdx plugins:install sfdx-hardis
echo 'y' | sfdx plugins:install sfdx-essentials
echo 'y' | sfdx plugins:install sfdmu
Expand Down
3 changes: 2 additions & 1 deletion defaults/monitoring/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
- script: |
npm install @salesforce/cli -g
sf plugins install @salesforce/plugin-packaging
sf plugins install @salesforce/[email protected]
cli_path=$(which sf | sed 's/\/bin\/sf/\/lib\/node_modules\/@salesforce\/cli/g')
( cd $cli_path && npm install @salesforce/[email protected] --save-exact )
echo y | sfdx plugins:install sfdx-hardis
echo y | sfdx plugins:install sfdx-essentials
sf version --verbose --json
Expand Down

0 comments on commit afd24b9

Please sign in to comment.