refactor(pypi): print a better error message for duplicate repos by aignas · Pull Request #3487 · bazel-contrib/rules_python

gemini-code-assist[bot]

@aignas

Before this PR the error message would not be super helpful and may
potentially make it hard to debug and report errors. This PR does the
following:
* Add a better error message which also adds comparison of the args with
  which we create the whl library.
* Add a test that ensures that the error message is legible and works.
* Add the necessary plumbing to logger to allow for testing error
  messages.

A proper fix requires more work, so just adding better logging and error
messages may be useful here.

Work towards bazel-contrib#3479

rickeylev