Skip to content
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

force:source:push doesn't fail on missing meta file #2011

Closed
jeffhube opened this issue Mar 22, 2023 · 2 comments
Closed

force:source:push doesn't fail on missing meta file #2011

jeffhube opened this issue Mar 22, 2023 · 2 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@jeffhube
Copy link

Summary

If sfdx force:source:push fails due to a missing meta file, the exit code is 0, falsely indicating success.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

$ git clone https://github.com/dreamhouseapp/dreamhouse-lwc
$ cd dreamhouse-lwc
$ rm force-app/main/default/classes/FileUtilities.cls-meta.xml
$ sfdx force:source:push
[Error: ENOENT: no such file or directory, open '/home/jeff/dreamhouse-lwc/force-app/main/default/classes/FileUtilities.cls-meta.xml'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/jeff/dreamhouse-lwc/force-app/main/default/classes/FileUtilities.cls-meta.xml'
}
$ echo $?
0

Expected result

The exit code should be non-zero

Actual result

The exit code was zero

System Information

  • Which shell/terminal are you using? bash
{
  "cliVersion": "sfdx-cli/7.192.2",
  "architecture": "wsl-x64",
  "nodeVersion": "node-v18.14.1",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 2.1.4 (core)",
    "@oclif/plugin-commands 2.2.10 (core)",
    "@oclif/plugin-help 5.2.7 (core)",
    "@oclif/plugin-not-found 2.3.21 (core)",
    "@oclif/plugin-plugins 2.4.0 (core)",
    "@oclif/plugin-search 0.0.14 (core)",
    "@oclif/plugin-update 3.1.6 (core)",
    "@oclif/plugin-version 1.2.1 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.30 (core)",
    "@oclif/plugin-which 2.2.16 (core)",
    "apex 2.2.2 (core)",
    "auth 2.7.7 (core)",
    "community 2.2.4 (core)",
    "custom-metadata 2.1.6 (core)",
    "data 2.3.6 (core)",
    "info 2.5.1 (core)",
    "limits 2.3.8 (core)",
    "org 2.4.6 (core)",
    "packaging 1.16.1 (core)",
    "schema 2.3.3 (core)",
    "settings 1.4.2 (core)",
    "signups 1.4.6 (core)",
    "source 2.5.5 (core)",
    "telemetry 2.1.3 (core)",
    "templates 55.4.4 (core)",
    "trust 2.4.4 (core)",
    "user 2.3.3 (core)",
    "@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)"
  ],
  "osVersion": "Linux 5.15.90.1-microsoft-standard-WSL2",
  "shell": "bash",
  "rootPath": "/home/jeff/sfdx"
}
@jeffhube jeffhube added the investigating We're actively investigating this issue label Mar 22, 2023
@github-actions
Copy link

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.

@cristiand391 cristiand391 added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Mar 29, 2023
@git2gus
Copy link

git2gus bot commented Mar 29, 2023

This issue has been linked to a new work item: W-12769219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

3 participants