Skip to content

Conversation

@mvukov
Copy link
Contributor

@mvukov mvukov commented Dec 12, 2022

Fixes #94 . The extra import path is routed via the .pth file.

@mvukov
Copy link
Contributor Author

mvukov commented Dec 12, 2022

@mattem @alexeagle PTAL.

@alexeagle alexeagle requested a review from mattem December 12, 2022 15:32
@mattem
Copy link
Collaborator

mattem commented Jan 6, 2023

I'm still not sure on making this implicit, and would rather it be explicitly added to a rules imports attr with ../.. back to the repo root as needed in user land.

@mvukov
Copy link
Contributor Author

mvukov commented Jan 18, 2023

I'm still not sure on making this implicit, and would rather it be explicitly added to a rules imports attr with ../.. back to the repo root as needed in user land.

Well, that's how official Bazel rules behave. FWIW, in a monorepo setting folks typically import their Python modules in a repo-relative fashion. And, from what I know, that works out of the box with the official rules.

@mattem PTAL.

@mvukov
Copy link
Contributor Author

mvukov commented Jan 26, 2023

@mattem friendly ping. PTAL when you have time.

1 similar comment
@mvukov
Copy link
Contributor Author

mvukov commented Feb 8, 2023

@mattem friendly ping. PTAL when you have time.

@mattem mattem merged commit 8b935bb into aspect-build:main Feb 14, 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.

[Bug]: The interpreter cannot do repo-relative imports

2 participants