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

package version create command fails silently when packageDirectory->definitionFile is not specified correctly #2193

Closed
ImJohnMDaniel opened this issue Jun 13, 2023 · 5 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@ImJohnMDaniel
Copy link

ImJohnMDaniel commented Jun 13, 2023

Summary

package version create command fails silently when packageDirectory->definitionFile is not specified correctly

Steps To Reproduce

  1. Setup a package project
  2. Specify the definitionFile parameter to an incorrect file location
  3. Execute sf package version create

Expected result

The command should exit with an error message that states that the definitionFile attribute could not be resolved.

Actual result

The command exits with no error message.

System Information

Using GIT BASH/BASH

{       
  "cliVersion": "@salesforce/cli/2.0.0-beta.51",
  "architecture": "darwin-x64",
  "nodeVersion": "node-v18.15.0",
  "osVersion": "Darwin 22.5.0",
  "shell": "zsh",
  "rootPath": "/Users/john/.local/share/sf/client/2.0.0-beta.51-a513adc",
  "pluginVersions": [
    "@dx-cli-toolbox/sfdx-toolbox-package-utils 0.8.4 (user)",
    "@dx-cli-toolbox/sfdx-toolbox-utils 0.1.2 (user)",
    "@mshanemc/plugin-streaming 1.1.7 (user)",
    "@mshanemc/sfdx-sosl 1.1.0 (user)",
    "@oclif/plugin-autocomplete 2.3.0 (core)",
    "@oclif/plugin-commands 2.2.15 (core)",
    "@oclif/plugin-help 5.2.9 (core)",
    "@oclif/plugin-not-found 2.3.24 (core)",
    "@oclif/plugin-plugins 3.1.2 (core)",
    "@oclif/plugin-search 0.0.17 (core)",
    "@oclif/plugin-update 3.1.17 (core)",
    "@oclif/plugin-version 1.3.4 (core)",
    "@oclif/plugin-warn-if-update-available 2.0.37 (core)",
    "@oclif/plugin-which 2.2.22 (core)",
    "@salesforce/cli 2.0.0-beta.51 (core)",
    "apex 2.3.3 (core)",
    "auth 2.8.1 (core)",
    "data 2.3.22 (core)",
    "deploy-retrieve 1.11.7 (core)",
    "info 2.6.19 (core)",
    "limits 2.3.18 (core)",
    "login 1.2.11 (core)",
    "org 2.9.8 (core)",
    "packaging 1.19.0 (user)",
    "schema 2.3.12 (core)",
    "settings 1.4.11 (core)",
    "sobject 0.1.24 (core)",
    "source 2.10.14 (core)",
    "telemetry 2.2.0 (core)",
    "templates 55.4.20 (core)",
    "trust 2.4.20 (core)",
    "user 2.3.17 (core)",
    "sfdmu 4.28.0 (user)",
    "shane-sfdx-plugins 4.43.0 (user)"
  ]
}

Additional information

n/a

@ImJohnMDaniel ImJohnMDaniel added the investigating We're actively investigating this issue label Jun 13, 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.

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

git2gus bot commented Jun 20, 2023

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

@mshanemc
Copy link
Contributor

we'll fix that so it throws when you specify a file that isn't there (or is a dir)

@shetzel
Copy link
Contributor

shetzel commented Jul 5, 2023

Fixed in recent CLIs.

@shetzel shetzel closed this as completed Jul 5, 2023
@ImJohnMDaniel ImJohnMDaniel changed the title package version create command fails silently when packageDirectory->definitionFile is now specified correctly package version create command fails silently when packageDirectory->definitionFile is not specified correctly Jul 9, 2023
@ImJohnMDaniel
Copy link
Author

Thanks for the help!

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