Skip to content

Add warning when sgd generates empty package.xml #249

@tprouvot

Description

@tprouvot

Is your proposal related to a problem?


Since we can add files to .sgdignore, some commits on those files can lead to empty package.xml and destructiveChanges.xml and cause deployment errors.

Describe the solution you'd like


It would be great if we can have this information returned in the command output such as:

{
  "error": null,
  "output": ".",
  "success": true,
  "warnings": ["Empty packages"]
}

Describe alternatives you've considered


Another solution would be to parse the package.xml and destructivesChanges files in CICD script to count the number of lines and detect when files are empty.

Additional context


I would be more than happy to contribute to this enhancement if you can provide me some implementation guidelines.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions