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

CICD: sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . is failing #982

Closed
sfv2 opened this issue Jan 9, 2025 · 4 comments · Fixed by #983
Closed
Assignees
Labels
bug Something isn't working

Comments

@sfv2
Copy link

sfv2 commented Jan 9, 2025

Issue verification check:

What is the problem?

sf sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . --json
cat package/package.xml

When try to get delta changes in gitlab CICD from commits the pipeline fails with below error

{
"status": 1,
"result": {
"output-dir": ".",
"error": "Cannot read properties of undefined (reading 'warnings')"
},
"warnings": []
}

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

sf sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . --json

What is the expected result?

{
"status": 0,
"result": {
"output-dir": ".",
},
"warnings": []
}

What is the actual result?

{
"status": 1,
"result": {
"output-dir": ".",
"error": "Cannot read properties of undefined (reading 'warnings')"
},
"warnings": []
}

@sfv2 sfv2 added the bug Something isn't working label Jan 9, 2025
@sfv2 sfv2 changed the title sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir "." cmd failing CICD: sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . cmd failing Jan 9, 2025
@sfv2 sfv2 changed the title CICD: sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . cmd failing CICD: sgd source delta --to "HEAD" --from "HEAD~$commit_count" --output-dir . is failing Jan 9, 2025
@scolladon
Copy link
Owner

scolladon commented Jan 9, 2025

Hi @sfv2!

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

This issue is also logged here #980
It will be fix very soon.

Stay tuned

@scolladon
Copy link
Owner

Duplicate of #980

@scolladon scolladon marked this as a duplicate of #980 Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

Shipped in release v6.0.2.
Version v6.0.2 will be assigned to the latest npm channel soon
Install it using either v6.0.2 or the latest-rc npm channel

$ sf plugins install sfdx-git-delta@latest-rc
# Or
$ sf plugins install [email protected]

💡 Enjoying sfdx-git-delta?
Your contribution helps us provide fast support 🚀 and high quality features 🔥
Become a sponsor 💙
Happy incremental deployment!

@sfv2
Copy link
Author

sfv2 commented Jan 9, 2025

Thank you for quickly addressing and fixing the bug. Your prompt action is much appreciated!

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.

2 participants