commit | 04e2f32be4b2ada889c6483ddcd458790968e1ef | [log] [tgz] |
---|---|---|
author | Alex Torok <alext9@gmail.com> | Wed Aug 21 10:56:54 2024 -0400 |
committer | GitHub <noreply@github.com> | Wed Aug 21 14:56:54 2024 +0000 |
tree | ee08668720b550af5818c153f15cf777edd06e0f | |
parent | bdcf53a7a0a09d3b73ff4b0096523799f10bd341 [diff] |
feat(gazelle): Update resolve.go to provide more human-friendly error output (#2120) Update the Resolver error messages in resolve.go to be easier to read. While enabling gazelle in an existing repo, I found it somewhat difficult to skim the error messages. This PR: 1. Adds a bit of whitespace to spread different pieces of information out 2. Provides an additional remediation action for ambiguous import resolution 3. Moves the filename and line number where the error is to the front of the line. 4. Provides more concrete "gazelle:resolve py" directive examples for each errored dep resolution. Additionally, update a testcase to showcase the ambiguous import resolution error case. See the `test.yaml` file diff for an example of the old vs new error output.
This repository is the home of the core Python rules -- py_library
, py_binary
, py_test
, py_proto_library
, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.