Back to all reviewers

Build dependency synchronization

tensorflow/tensorflow
Based on 2 comments
Python

When adding new imports to code files, always synchronize by updating the corresponding dependencies in BUILD files. Different build environments enforce dependency rules with varying strictness, so proper configuration is essential even if local builds succeed. This helps prevent errors like:

Configurations Python

Reviewer Prompt

When adding new imports to code files, always synchronize by updating the corresponding dependencies in BUILD files. Different build environments enforce dependency rules with varying strictness, so proper configuration is essential even if local builds succeed. This helps prevent errors like:

ERROR: Strict deps violations: //tensorflow/python/client:device_lib
  In tensorflow/python/client/device_lib.py, no direct deps found for imports:
    line 21: from tensorflow.python.platform import tf_logging as logging: Module "tensorflow.python.platform" not provided by a direct dep

When adding a new import like from tensorflow.python.platform import tf_logging as logging, ensure you also update the appropriate BUILD file to include this dependency, even if your local environment doesn’t immediately flag the missing dependency.

2
Comments Analyzed
Python
Primary Language
Configurations
Category

Source Discussions