scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
405 stars 111 forks source link

[LATEST-RC/5.38.1] [Error folder does not exist] #814

Closed arafesthain closed 4 months ago

arafesthain commented 4 months ago

Issue verification check:

What is the problem?

Unable to run the sgd delta command with success

What is the parameter and the value you used with it?

sfdx sgd:source:delta -d -t HEAD -f 2024_GR02.1_stopclock -r /home/vsts/work/1/salesforce_repo -i /home/vsts/work/1/salesforce_repo/.forceignore -o output

What is the expected result?

Command run without error (SGD version 5.34.0)

What is the actual result?

''\''home/vsts/work/1/salesforce_repo'\'' folder does not exist, '\''home/vsts/work/1/salesforce_repo/.forceignore'\'' file does not exist, '\''home/vsts/work/1/salesforce_repo'\'' is not a git repository'

Steps to reproduce

Go on develop24GR03 branch and try to compare with 2024_GR02.1_stopclock tag with the same folder structure as on the command line

Execution context

Node: v18.19.1 Npm version : 10.2.4 @salesforce/cli/2.32.8 linux-x64 node-v18.19.1 system: Ubuntu 22.04.4 LTS

sfdx-git-delta 5.38.1

yarn v1.22.21

scolladon commented 4 months ago

Hi @arafesthain !

Thanks for raising this issue and thanks for contributing in making this project better!

The issue is because of the absolute path IMHO... It works well with relative path I'll fix it very soon (I hope today).

Stay tuned !

arafesthain commented 4 months ago

Ahaha yep could be the root cause :) As I'm on a virtual machine with fixed environment variables, I have to stick to the absolute path for my own sake :D

github-actions[bot] commented 4 months ago

Shipped in release v5.38.2. You can install the new version using the version number or the latest-rc channel

$ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install sfdx-git-delta@v5.38.2

Happy incremental deployment!

arafesthain commented 4 months ago

@scolladon alright from here! thx :)