Skip to content

Conversation

aptenodytes-forsteri
Copy link
Contributor

Fixes #1006

Also, set PYTHONNOUSERSITE so that the script doesn't even look in site packages when checking modules.

Fix typo with capitilize.

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?

Issue Number: #1006

What is the new behavior?

false

No extraneous output.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

return ""


site.getusersitepackages = __override_getusersitepackages__
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code wasn't having the desired effect.

Copy link
Member

Choose a reason for hiding this comment

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

Interesting.

Fixes bazel-contrib#1006

Also, set PYTHONNOUSERSITE so that the script doesn't even look in site
packages when checking modules.

Fix typo with capitilize.
@aptenodytes-forsteri
Copy link
Contributor Author

I might be able to add a test case

@aptenodytes-forsteri
Copy link
Contributor Author

aptenodytes-forsteri commented Jan 23, 2023

I might be able to add a test case

Scratch that, looks a bit more involved. Probably enough of an edge case here that it doesn't really need to be covered by a test.

for module in stdin:
module = module.strip()
# Don't print the boolean directly as it is captilized in Python.
# Don't print the boolean directly as it is capitalized in Python.
Copy link
Member

Choose a reason for hiding this comment

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

This was the Brazilian spelling. 🤣
Thanks for fixing it.

return ""


site.getusersitepackages = __override_getusersitepackages__
Copy link
Member

Choose a reason for hiding this comment

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

Interesting.

@f0rmiga f0rmiga merged commit 767e3ce into bazel-contrib:main Jan 23, 2023
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.

Gazelle plugin crashes if pygame is in user's site-packages

2 participants