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

Remove duplicate method invocation in entry_point generation #696

Merged
merged 1 commit into from
May 9, 2022

Conversation

thundergolfer
Copy link

@thundergolfer thundergolfer commented May 8, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Duplicate method invocation.

#675 introduced the return code handling.

https://github.com/bazelbuild/rules_python/pull/573/files#diff-cd80d344159f5c70b91dfc2caee848739096387abeda9152d53f601c812b41eaR38 removed the unnecessary type-check but intro'd the 🐛.

Issue Number: #675

What is the new behavior?

Only execute the method once.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@thundergolfer thundergolfer requested review from f0rmiga and hrfuller and removed request for brandjon and lberki May 8, 2022 13:12
@thundergolfer thundergolfer changed the title Update bazel.py Remove duplicate method invocation in entry_point generation May 8, 2022
Copy link
Contributor

@hrfuller hrfuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@f0rmiga f0rmiga merged commit ed6bf15 into main May 9, 2022
@thundergolfer thundergolfer deleted the thundergolfer-issue-675 branch June 14, 2022 10:58
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.

3 participants