-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add warning when sgd generates empty package.xml #249
Comments
Hi @tprouvot ! Thanks for this suggestion.
We could consider adding this has a warning may break ascendant compatibility if some pipeline already interpret its content. Interpret the result of the $ grep -q '<types>' output/package/package.xml && sfdx force:source:deploy -x output/package/package.xml
$ grep -q '<types>' output/destructiveChanges/destructiveChanges.xml && sfdx force:mdapi:deploy -d output/destructiveChanges/destructiveChanges.xml --ignorewarnings If you want you could create a dedicated subsection under the advance use case section in the README! |
Hi @tprouvot! Following up on this enhancement request: what do you think of @scolladon 's reply and suggestion of dealing with it through an entry in the Readme (to explain how to use Actually you're most welcome to submit a PR with this addition in the Readme (under the "advance use cases" section) since it may help others too :-) |
Hi @mehdisfdc, I'm OK with @scolladon 's suggestion, I created the following PR #289 |
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:
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.
The text was updated successfully, but these errors were encountered: