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

Ignore unmodified files when using --new-pr or --update_pr #4753

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Feb 4, 2025

When including an unmodified EasyConfig with --new-pr an error is shown that a commit message is required because this EC is modified which is not the case.

Adjust the copy_* functions to ignore any unmodified file. This especially omits them in the file_info struct returned that is then used to determine commit message/title etc.

Fixes #4751

Note: While working on this I noticed that new EasyConfigs that are dependencies of added EasyConfigs are ignored in the commit message. I propose to populate file_info instead of the dep_info at

This would also fix the possibly incomplete debug log message Staging all <n> new/modified easyconfigs that doesn't account for those ECs.

When including an unmodified EasyConfig with `--new-pr` an error is
shown that a commit message is required because this EC is modified
which is not the case.

Adjust the `copy_*` functions to ignore any unmodified file.
This especially ommits them in the `file_info` struct returned that is
then used to determine commit message/title etc.

Fixes easybuilders#4751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--new-pr with existing file leads to error even if not modified
1 participant