Skip to content

chore(gitignore): exclude java code packages from global python env patterns#13003

Open
meltsufin wants to merge 1 commit intomainfrom
fix/gitignore-package-collision
Open

chore(gitignore): exclude java code packages from global python env patterns#13003
meltsufin wants to merge 1 commit intomainfrom
fix/gitignore-package-collision

Conversation

@meltsufin
Copy link
Copy Markdown
Member

This will be needed for java-bigtable.
Example: java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/test_helpers/env/PrefixGenerator.java

@meltsufin meltsufin requested a review from a team as a code owner May 5, 2026 02:29
@meltsufin meltsufin requested a review from blakeli0 May 5, 2026 02:29
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the .gitignore file to prevent Java and Proto source directories named env/ or ENV/ from being ignored by global Python virtual environment rules. The reviewer suggested simplifying these patterns to a more maintainable and consistent format that covers all source directories under src/.

Comment thread .gitignore
Comment on lines +44 to +49
!**/src/main/java/**/env/
!**/src/test/java/**/env/
!**/src/main/proto/**/env/
!**/src/test/proto/**/env/
!**/src/main/java/**/ENV/
!**/src/test/java/**/ENV/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The current patterns are repetitive and inconsistent (for example, ENV/ is excluded for java but not for proto). Since it is highly improbable for a Python virtual environment to be located within a source directory, these can be simplified to a more maintainable form that covers all source types (Java, Proto, etc.) and both main/test sets consistently.

!**/src/**/env/
!**/src/**/ENV/

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.

1 participant