Your patch content is correct, but the file references are not.
Where you have:
--- /modules/contrib/salesforce/modules/salesforce_pull/src/Controller/PullController.php 2019-10-08 23:52:39.000000000 -0700
+++ /modules/contrib/salesforce/modules/salesforce_pull/src/Controller/PullController.php 2019-10-08 23:52:22.000000000 -0700
Should be:
--- a/modules/salesforce_pull/src/Controller/PullController.php 2019-10-08 23:52:39.000000000 -0700
+++ b/modules/salesforce_pull/src/Controller/PullController.php 2019-10-08 23:52:22.000000000 -0700
I'm guessing this is because salesforce module is included in your site's repository, rather than a standalone clone of the module repo. Generally, you want to avoid editing patch files by hand, but it's relatively safe to edit the file paths.
Thanks again!
PS. if you haven't already, take a look at
cweagans/composer-patches
which will help you manage patches on your site.
Great, thank you for filing the issue, definitely a bug.
I've committed it to the dev versions of both 5.0.x and 8.x-4.x
Congratulations on filing your first patch!
I hope I'm not over-stepping by offering a couple points of feedback so you can continue to file successful patches:
When you post a patch, you will probably want to set the issue status to "Needs review"
This will not only trigger any automated tests, but also bring the issue to maintainers attention
Generally when writing a patch, you want to work against the latest dev version of the project, because that's where the patch will be applied. (5.0.x-dev for this module.) Lots of times it works out fine, but in some cases you might be working on out of date code.
Your patch content is correct, but the file references are not.
Where you have:
Should be:
I'm guessing this is because salesforce module is included in your site's repository, rather than a standalone clone of the module repo. Generally, you want to avoid editing patch files by hand, but it's relatively safe to edit the file paths.
Thanks again!
PS. if you haven't already, take a look at cweagans/composer-patches which will help you manage patches on your site.