-
Notifications
You must be signed in to change notification settings - Fork 78
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
forceignore file does not respect ignoring of profiles #1471
Comments
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. |
@ImJohnMDaniel, not sure if this is helpful but I just finished tuning my Profile management with my
The trick in this is to not-ignore the profiles that I currently have in source because I do want them deployed but I never want to see them changed by something like modifying the object schemas. We've only had this in place for a few weeks but so far we've been really happy with the results. No more errant profile changes while still being able to populate them into Scratch Orgs during build. I realize there is a difference between opening an issue because you found a bug and because you need a solution, hopefully this sheds some light on either. |
@aheber thanks for the input. I understand what you are saying even though not directly related |
@mshanemc and others on the Salesforce CLI Team -- I guess my question would be to start with, is the way that I listed the entry in the |
Was this working before? This definitely works tip: you can Also, code here if you wanna play with it https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/resolve/forceIgnore.ts It's using https://github.com/kaelzhang/node-ignore |
Yes, it was. If I have to guess, I would say that it broke with the recent switch to the new Having said that, I tried some variations using your suggestion of
For my needs, I can proceed with that pattern. Also, after experimenting a bit, it would appear that this issue is not restricted to just profiles. It would appear that any pattern of "double asterisks and then a period" ( I will defer to you regarding whether or not to keep this issue open. |
I think it's working like it's supposed to and But, if **.foo is supported for |
we did intentionally drop our custom implementation of ignore files because that's a dumb thing to implement, but that was quite some time ago. |
It could have very well been a nuance of the custom implementation and I am only just now catching the behavior change. But I am good at this point, so completely your discretion if you want to pursue this further. |
@mshanemc, I may have spoken too soon. This issue is still present. I have a simple project. I have tried the following combinations of entries in the forceignore file:
In each case, I create the scratch org, push a handful of files to that scratch org, then execute a |
can it be replicated with https://github.com/ImJohnMDaniel/profile-ignore-test? |
This issue has been linked to a new work item: W-11003710 |
* docs(sfdx): Headers for 7.148.3 stable & 7.149.0 rc These just represent the header gymnastics for the promotion. Release details to follow. * docs(sf): Headers for 1.25.2 latest & 1.26.0 rc These just represent the header gymnastics for the promotion. Release details to follow. * docs(sf): env scratch & sandbox commands release notes Release * docs(sfdx): `force:source:pull` respects `**` ignores references #1471 * docs(sfdx): Respect paths in `push` and `pull` * docs(sfdx): Deploy timeouts include the ID in JSON * Update README.md * Update README.md Co-authored-by: Shane McLaughlin <[email protected]>
This fix is included in the latest stable build of |
Edit : migrated to new issue #2737 |
Summary
force:source:pull
pulls profiles from scratch org to codebase regardless of whether or not profiles are ignored in the.forceignore
fileSteps To Reproduce:
Repository to reproduce: profile-ignore-test
-- Use repo's README.md file for reproduction steps
Expected result
profiles should not be pulled down to project source code if profiles are ignored in
.forceignore
Actual result
profiles are being pulled down
System Information
Additional information
n/a
The text was updated successfully, but these errors were encountered: