Conversation
- none should use 'import rules_pkg.*', that breaks if you rename the repo - import from the top level. The correct way to import is `from private import helpers` And fix some tests so they can be imported into other places.
nacl
left a comment
There was a problem hiding this comment.
I'm fine with the idea, but I think that this rule and the overall reasoning should be documented somewhere to reduce surprise during reviews. Could this be enforced somehow?
There are others that might be missing here. This one:
Lines 286 to 291 in f7f2bd3
Right... the imports=[.] is a particular problem for me. It does not exist in Blaze py_library. I have to map it out on import. |
These are non-functional changes to aid users who import the library to their own repo.
The correct way to import is to list the package, relative to the repo: E.g.
from private import helpersAnd fix some tests so they can be imported into other places.
Tested by importing the repot into Google. Not every test builds and runs, but we are getting closer.