Skip to content

Fix import (fixes --noexperimental_python_import_all_repositories)#2171

Merged
uhthomas merged 2 commits intobazelbuild:masterfrom
AugustKarlstedt:patch-1
Jan 14, 2023
Merged

Fix import (fixes --noexperimental_python_import_all_repositories)#2171
uhthomas merged 2 commits intobazelbuild:masterfrom
AugustKarlstedt:patch-1

Conversation

@AugustKarlstedt
Copy link
Copy Markdown
Contributor

@AugustKarlstedt AugustKarlstedt commented Oct 11, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

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

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

The current import implicitly relies on the behavior where every immediate sub-directory under the runfiles root is added to PYTHONPATH

Issue Number: N/A

What is the new behavior?

Removes this assumption, which fixes an incompatibility with --noexperimental_python_import_all_repositories

Does this PR introduce a breaking change?

  • No

Other information

see bazel-contrib/rules_python#792

@AugustKarlstedt AugustKarlstedt changed the title Fix import Fix import (fixes --noexperimental_python_import_all_repositories) Oct 11, 2022
@AugustKarlstedt
Copy link
Copy Markdown
Contributor Author

also fixes CI... can split into separate PR

@uhthomas
Copy link
Copy Markdown
Collaborator

I think CI is fixed now. If you want to update this PR with just your changes I'm happy to approve it.

Update presubmit.yml

Update BUILD

Update BUILD

revert some stuff from bazelbuild#2098

goldens

n

Revert "n"

This reverts commit 8c094e7.

Revert "goldens"

This reverts commit ce1ff41.

Revert "revert some stuff from bazelbuild#2098"

This reverts commit afb5787.

Revert "Update presubmit.yml"

This reverts commit bf40dad.
@uhthomas
Copy link
Copy Markdown
Collaborator

uhthomas commented Jan 14, 2023

Thank you! :)

@uhthomas uhthomas merged commit aada190 into bazelbuild:master Jan 14, 2023
dieend pushed a commit to brexhq/rules_docker that referenced this pull request Dec 13, 2024
Update presubmit.yml

Update BUILD

Update BUILD

revert some stuff from bazelbuild#2098

goldens

n

Revert "n"

This reverts commit 8c094e7.

Revert "goldens"

This reverts commit ce1ff41.

Revert "revert some stuff from bazelbuild#2098"

This reverts commit afb5787.

Revert "Update presubmit.yml"

This reverts commit bf40dad.
dieend pushed a commit to brexhq/rules_docker that referenced this pull request Jan 24, 2025
Update presubmit.yml

Update BUILD

Update BUILD

revert some stuff from bazelbuild#2098

goldens

n

Revert "n"

This reverts commit 8c094e7.

Revert "goldens"

This reverts commit ce1ff41.

Revert "revert some stuff from bazelbuild#2098"

This reverts commit afb5787.

Revert "Update presubmit.yml"

This reverts commit bf40dad.
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