forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
494 stars 78 forks source link

Since SFDX Update my CI ist completely broken #1604

Closed Schuchie closed 2 years ago

Schuchie commented 2 years ago

Summary

Updated SFDX to 7.157.0 and now its completely broken.

Steps To Reproduce:

Update to the newest SFDX version: via sfdx update

(node:19969) SyntaxError Plugin: sfdx-cli: Unexpected identifier
module: @oclif/config@1.18.3
task: runHook init
plugin: sfdx-cli
root: /Users/user/.local/share/sfdx/client/7.157.0-adf40ea
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:19969) SyntaxError Plugin: sfdx-cli: Unexpected identifier
module: @oclif/config@1.18.3
task: runHook prerun
plugin: sfdx-cli
root: /Users/user/.local/share/sfdx/client/7.157.0-adf40ea
See more details with DEBUG=*
sfdx-cli: Updating CLI... already on latest version: 7.157.0-adf40ea
(node:19969) SyntaxError Plugin: sfdx-cli: Unexpected identifier
module: @oclif/config@1.18.3
task: runHook update
plugin: sfdx-cli
root: /Users/user/.local/share/sfdx/client/7.157.0-adf40ea
See more details with DEBUG=*
user plugins are texei-sfdx-plugin, sfdx-git-delta, shane-sfdx-plugins, dependencies-cli, sfdx-hardis, sfpowerkit, @salesforce/lwc-dev-server, sfdmu, @dxatscale/sfpowerscripts
NOTE: This error can be ignored in CI and may be silenced in the future
- Set the SFDX_HIDE_RELEASE_NOTES env var to "true" to skip this script

(node:19975) SyntaxError Plugin: sfdx-cli: Unexpected identifier
module: @oclif/config@1.18.3
task: runHook init
plugin: sfdx-cli
root: /Users/user/.local/share/sfdx/client/7.157.0-adf40ea
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)

NOTE: This error can be ignored in CI and may be silenced in the future
- Set the SFDX_HIDE_RELEASE_NOTES env var to "true" to skip this script

    SyntaxError: Unexpected identifier

warning "dependencies-cli > @salesforce-ux/design-system@2.16.2" has unmet peer dependency "postcss@^8.3.5".
warning "sfdx-hardis > mega-linter-runner > yeoman-environment@3.6.0" has unmet peer dependency "mem-fs@^1.2.0 || ^2.0.0".
warning "sfdx-hardis > mega-linter-runner > yeoman-environment@3.6.0" has unmet peer dependency "mem-fs-editor@^8.1.2 || ^9.0.0".
warning "sfpowerkit > ts-node@9.1.1" has unmet peer dependency "typescript@>=2.7".
warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.9" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
sfdx-cli: Updating plugins... done

Expected result

No errors on the sfdx commands

Actual result

Cant deploy, or update without an error

System Information

OSX with BASH

sfdx version --verbose --json

(node:20113) SyntaxError Plugin: sfdx-cli: Unexpected identifier
module: @oclif/config@1.18.3
task: runHook init
plugin: sfdx-cli
root: /Users/user/.local/share/sfdx/client/7.157.0-adf40ea
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
{
    "cliVersion": "sfdx-cli/7.157.0",
    "architecture": "darwin-x64",
    "nodeVersion": "node-v16.15.1",
    "pluginVersions": [
        "@dxatscale/sfpowerscripts 15.3.2 (beta)",
        "@oclif/plugin-autocomplete 0.3.0 (core)",
        "@oclif/plugin-commands 1.3.0 (core)",
        "@oclif/plugin-help 3.3.1 (core)",
        "@oclif/plugin-not-found 1.2.6 (core)",
        "@oclif/plugin-plugins 1.10.11 (core)",
        "@oclif/plugin-update 1.5.0 (core)",
        "@oclif/plugin-warn-if-update-available 1.7.3 (core)",
        "@oclif/plugin-which 1.0.4 (core)",
        "@salesforce/lwc-dev-server 2.11.0",
        "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
        "alias 2.1.0 (core)",
        "apex 0.13.0 (core)",
        "auth 2.2.0 (core)",
        "community 2.0.0 (core)",
        "config 1.4.12 (core)",
        "custom-metadata 2.0.0 (core)",
        "data 2.0.4 (core)",
        "dependencies-cli 2.0.1",
        "generator 2.0.1 (core)",
        "info 2.0.1 (core)",
        "limits 2.0.1 (core)",
        "org 1.13.2 (core)",
        "salesforce-alm 54.6.1 (core)",
        "schema 2.1.1 (core)",
        "sfdmu 4.14.4",
        "sfdx-cli 7.157.0 (core)",
        "sfdx-git-delta 5.3.0",
        "sfdx-hardis 2.90.0",
        "sfpowerkit 4.2.8",
        "shane-sfdx-plugins 4.43.0",
        "├─ @mshanemc/sfdx-sosl 1.1.0",
        "└─ @mshanemc/plugin-streaming 1.1.7",
        "signups 1.2.0 (core)",
        "source 2.0.3 (core)",
        "telemetry 2.0.0 (core)",
        "templates 55.0.0 (core)",
        "texei-sfdx-plugin 1.16.0",
        "trust 2.0.0 (core)",
        "user 2.1.0 (core)"
    ],
    "osVersion": "Darwin 20.6.0"
}

Additional information

Feel free to attach a screenshot.

github-actions[bot] commented 2 years ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

maggiben commented 2 years ago

Hello, sorry to hear that, it's the first report of this kind, can you run sfdx version --verbose and sfdx plugins --core ? Also can you try uninstalling: https://developer.salesforce.com/docs/atlas.en-us.230.0.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm and installing again ?

Schuchie commented 2 years ago

After the deletion of sfdx and installing it via npm it works now.

maggiben commented 2 years ago

thanks for you feedback!