-
-
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
[Not able to use sudo sfdx sgd:source:delta --to HEAD --from HEAD^] #907
Comments
Hi @agam-sharma! Thanks for raising this issue and thanks for contributing in making this project better! Does the plugin execute correctly when not using sudo ? |
Hi @scolladon Without sudo , command was failing .. that was probably because it was try to save sf.log file. I have same thing configured in my git workflow where I use sgd to deploy delta package and it works there not sure why isn’t it working on my local. |
I think you should own the sudo chown <you_user> /Users/<you_user>/.sf/sf.log
sfdx sgd:source:delta --to HEAD --from HEAD^ |
Hi @scolladon I changed the owner of that folder to my self , still I am getting the same error. sfdx sgd:source:delta --to HEAD --from HEAD^ --output . { Not able to debug the root cause either. |
It seems to be similar to #862 |
The repo I am working on is my work repo . node -v git --version sfdx --version sfdx plugins |
Could you give me access? I can sign a NDA |
Hi @scolladon Unfortunately , that won't be possible for me . Additionally Repos and releases are taken care by our platform and release team. |
Could you create a reproduction environment forking our reproduction playground and give me access ? |
Hi @scolladon , |
HI @scolladon Here is the forked public repo : https://github.com/agam-sharma/sfdx-git-delta-reproduction-playground |
How can I reproduce the issue with your playground ? |
@agam-sharma Even though it's throwing an error, I can see that the package.xml has been generated successfully. Can you verify if it's the same with you? |
Hi @thephani Did you get the same error and yet the package was created ? |
HI @scolladon On the contrary , same command is throwing error for my work repository. Bit strange but this what I was able to deduce. |
Hi @agam-sharma Thanks for those information. As the plugin is working fine, I think the issue is observable only under very specific condition/context that your work repository have. Could you provide a way for me to reproduce the issue please (accessing your repo, or providing the minimal context required to reproduce inside a dedicated branch of the reproduction playground) ? |
Yes, thats correct! |
Is there a way for me to reproduce the issue on my end ? So I can debug |
@scolladon Here are steps I created.
|
I do not reproduce by doing it, as you can see our CI test our end2end repository against multiple architectures without the issue. I think it is more related to the content of your repository, this is why I'd like to access it or, if you can isolate the problem on your side and put it in the reproduction playground. In the meantime, do you have the same issue with the stable channel ? (´sf plugins install sfdx-git-delta@stable´) |
Hi @scolladon 'sf plugins install sfdx-git-delta@stable' worked perfectly. Although I got this error but Package xml were generated. ** I'll try to mock my repo into the playground org. |
Which error ?
The underlying library to interact with git is different, in stable it was in house library, after that it is an external fast portable library
Thanks a lot 🙏 |
Oh Sorry My bad , I thought it was an error. Although its not.
I feel that the problem is with repo structure of my org , I'll provide a SS of repo struct. |
Hi @scolladon I downloaded my work repository again , and it is now working perfectly fine. Thanks |
Issue verification check:
What is the problem?
I am not able to run sudo sfdx sgd:source:delta --to HEAD --from HEAD^ command. Getting the following error.
{
"error": "Cannot read properties of null (reading 'slice')",
"output": ".",
"success": false,
"warnings": []
}
What is the parameter and the value you used with it?
What is the expected result?
What is the actual result?
Steps to reproduce
Execution context
Operating System: …
yarn version: …
node version: …
git version: …
sfdx version: …
sgd plugin version: …
More information (optional)
The text was updated successfully, but these errors were encountered: