Skip to content
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

"error": "--from is not a valid sha pointer: 'DEV'", #282

Closed
sbsousa opened this issue Mar 30, 2022 · 4 comments · Fixed by #283
Closed

"error": "--from is not a valid sha pointer: 'DEV'", #282

sbsousa opened this issue Mar 30, 2022 · 4 comments · Fixed by #283
Labels
bug Something isn't working

Comments

@sbsousa
Copy link

sbsousa commented Mar 30, 2022

Deltas in my Azure DevOps pipeline stopped working following the release to 5.1.0 this morning. The release notes show a new feature release
verify --from and --to parameters to be valid git pointer

I am now receiving ""error": "--from is not a valid sha pointer: 'DEV'" when running the following command:

sfdx sgd:source:delta --to HEAD --from DEV --ignore .forceignore --output ./delta/ --generate-delta

I am able to run the command manually from CLI but not within the CI/CD pipeline.

@jdgirald
Copy link

I am having the same issue with a rev tag pointer.

plugin sfdx-git-delta... installed v5.1.0

@scolladon-sfdc
Copy link
Contributor

scolladon-sfdc commented Mar 31, 2022

Hi @jdgirald !

Thanks for raising this issue and sorry for the inconvenience here.

I think the branches are not created in the CI/CD you need to manually refer to them via the remote
Could you try in the CI/CD to specify the remote ?

$ sfdx sgd:source:delta --to "HEAD" --from "origin/DEV" --ignore .forceignore --output ./delta/ --generate-delta

I have been able to reproduce the issue with the tags locally.
It requires a fix which I'll do soon

@mehdisfdc if the root cause is not specifying the remote, lets consider improving the readme for the CI/CD use case, we had a similar issue with github action

@scolladon scolladon added the bug Something isn't working label Mar 31, 2022
@sbsousa
Copy link
Author

sbsousa commented Mar 31, 2022

@scolladon Confirmed working with "origin/DEV". Thank you!

@scolladon
Copy link
Owner

Hi! New release 5.1.1 as just been shipped with the fix for the tag usage with --to and --from parameters
We also added a section to explain a little bit how to use it in CI/CD context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants