-
-
Notifications
You must be signed in to change notification settings - Fork 120
A forceignored file is still copied into output directory #176
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
Comments
Hi @alexmodis ! Thanks for raising this issue and thanks for your help making this pluging better (t'es un habitué maintenant 😉) I do not reproduce it successfully on my laptop yet (it works well, the file is ignored). Could you create a reproduction context in a branch |
Haha :D oui ^^ Merci à toi surtout :D Command used localy in the repro playground: https://github.com/alexmodis/sfdx-git-delta-reproduction-playground/tree/issue/176 On my windows mingw bash: |
Thanks @alexmodis ! I can reproduce locally. I'll be able to investigate. Also, I have a warning when launching the command : {
"error": null,
"output": "output",
"success": true,
"warnings": [
"force-app/wow/wmf_order/objects/WOO_WMF_Order_Line_Item__c/WOO_WMF_Order_Line_Item__c.object-meta.xml: Source and destination must not be the same.",
"force-app/wow/wmf_order/objects/WOO_WMF_Orders__c/WOO_WMF_Orders__c.object-meta.xml: Source and destination must not be the same."
]
} Do you have the same warning ? |
Yes I have the same warnings. I never investigate them as everything is working fine like that ^^ and I don't really understand the warning message. |
Those warnings seems to be related to this issue A PR is on his way to fix the weird copy behaviour. Stay tuned for the next release (probably today) |
@scolladon new sfdx error now :p
gonna check on other PullRequest if I'm getting the same |
@scolladon error just above is appearing now on 4.8.0 on pullRequest that was OK with sgd 4.7.2 |
@alexmodis do you have details on how to reproduce the issue ? Have isolated the use case ? |
I put it in repro playground but not able to reproduce. I guess that only one of the file changed (in my repo), the static resource one but not the meta linked to it. EDIT : I'm now able to reproduce here : issue/176-static-res-error Obeserved: Expected: |
Thanks, I reproduce it locally. |
My useless contribution to this thread: 😉
|
@alexmodis new release 4.8.1 available ! We fixed the fix 😉 |
Put a ts file in forceignore.
See that SGD works fine
Expected result :
File is not copied into ouput dir (--generate-delta / -d)
Current Result:
File is copied into ouput dir and deployments is failing with below error.
.forceignore content :
SGD command:
sfdx sgd:source:delta -d -t HEAD -f 2021_GR05.0 -r /agent/_work/1/salesforce_repo -i /agent/_work/1/salesforce_repo/.forceignore -o output
Operating system:
Linux Ubuntu 20.04
sfdx-git-delta 4.7.2
sfdx-cli/7.110.0 linux-x64 node-v16.6.0
The text was updated successfully, but these errors were encountered: