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

invalid logging about file that doesn't exist #1609

Closed mshanemc closed 1 year ago

mshanemc commented 2 years ago

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

  1. DEBUG=* sfdx force:org:beta:create -f config/project-scratch-def.json -d 1 -s

Expected result

don't warn about non-existing file

Actual result

sf:SfProjectJson INFO Reading config file: /Users/shane.mclaughlin/.sfdx/sfdx-project.json +32ms
  sf:SfProjectJson INFO Reading config file: /Users/shane.mclaughlin/eng/repros/forcedotcom-issue-scratchOrg-objectSettings/sfdx-project.json +0ms
  sf:SfProjectJson TRACE Setup child 'SchemaValidator' logger instance +3ms
  sf:SchemaValidator DEBUG Schema loaded for /Users/shane.mclaughlin/eng/sfdx-core/node_modules/@salesforce/schemas/sfdx-project.schema.json +35ms
  sf:SfProjectJson WARN The config file "/Users/shane.mclaughlin/.sfdx/sfdx-project.json" is not schema valid.
  sf:SfProjectJson Due to: Validation errors:
  sf:SfProjectJson #/required: must have required property 'packageDirectories' +11ms
  sf:SfProjectJson TRACE Setup child 'SchemaValidator' logger instance +7ms
  sf:SchemaValidator DEBUG Schema loaded for /Users/shane.mclaughlin/eng/sfdx-core/node_modules/@salesforce/schemas/sfdx-project.schema.json +19ms
  sf:SfProjectJson TRACE Setup child 'SchemaValidator' logger instance +13ms
  sf:SchemaValidator DEBUG Schema loaded for /Users/shane.mclaughlin/eng/sfdx-core/node_modules/@salesforce/schemas/sfdx-project.schema.json +13ms
  sf:SfProjectJson TRACE Setup child 'SchemaValidator' logger instance +10ms
  sf:SchemaValidator DEBUG Schema loaded for /Users/shane.mclaughlin/eng/sfdx-core/node_modules/@salesforce/schemas/sfdx-project.schema.json +9ms
  sf:SfProjectJson WARN The config file "/Users/shane.mclaughlin/.sfdx/sfdx-project.json" is not schema valid.
  sf:SfProjectJson Due to: Validation errors:
  sf:SfProjectJson #/required: must have required property 'packageDirectories' +10ms

System Information

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

@mshanemc is this a feature request or a bug ?

git2gus[bot] commented 2 years ago

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

github-actions[bot] commented 2 years ago

This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted.