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

entry_point function executed twice #675

Closed
ewianda opened this issue Mar 30, 2022 · 2 comments
Closed

entry_point function executed twice #675

ewianda opened this issue Mar 30, 2022 · 2 comments

Comments

@ewianda
Copy link
Contributor

ewianda commented Mar 30, 2022

🐞 bug report

Affected Rule

The issue is caused by the rule: entry_point

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

A clear and concise description of the problem...

The current implementation of entry_point content generation function results in a repeated calling of the entrypoint funciton.

rc = {method}()
sys.exit({method}())

🔬 Minimal Reproduction

🔥 Exception or Error





🌍 Your Environment

Operating System:

  

  

Output of bazel version:

  

  

Rules_python version:

  

  

Anything else relevant?

@thundergolfer
Copy link

Yep, that's quite blatant. I reviewed it too, 😖 .

@thundergolfer
Copy link

Thanks for you issue report @ewianda.

Addressing this issue in #696.

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

No branches or pull requests

2 participants