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

Mike's code review comments #208

Merged
merged 8 commits into from
Sep 27, 2023

Conversation

mernst
Copy link
Collaborator

@mernst mernst commented Sep 12, 2023

Merge #207 first.

@benedikt-schesch
Copy link
Owner

@mernst There is some logic I don't understand in src/scripts/merge_tools/resolve-import-conflicts-in-file.py and src/scripts/merge_tools/resolve-import-conflicts.
We have:

  if ! "${SCRIPTDIR}"/resolve-import-conflicts-in-file.py "$file" ; then
    status=1
  fi

Which means that we are waiting for the script to exit with non-zero status. I believe this should happen in case we don't handle a merge. Looking at the script, the only case the script will leave with non-zero status is in case the number of parameters is not 1 (which won't happen in this case, ~line 20) or in case a conflict marker is missing (which also shouldn't happen, assert line ~107). I see no statement to exit the code in case we don't handle a merge. Is this a bug, or is it something I don't understand?

@mernst
Copy link
Collaborator Author

mernst commented Sep 25, 2023

@mernst There is some logic I don't understand in src/scripts/merge_tools/resolve-import-conflicts-in-file.py and src/scripts/merge_tools/resolve-import-conflicts.

Thanks for catching this. Please see #217 .

@benedikt-schesch benedikt-schesch merged commit d5a8de8 into v2-update Sep 27, 2023
4 checks passed
@benedikt-schesch benedikt-schesch deleted the v2-update-code-review-comments branch September 27, 2023 18:55
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.

2 participants