Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lint] Tidy up genquery input #18253

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Nov 3, 2022

Our genquery scope opts-in to the //foo/bar:bar library spelling, not the //foo/bar abbreviation; this is flagged as an error in Bazel 6.0. Use the //foo/bar:bar spelling to avoid the error.

Example failure prior to this PR here.

Example success with this PR here.


This change is Reviewable

Our genquery scope opts-in to the //foo/bar:bar library spelling, not
the //foo/bar abbreviation; this is flagged as an error in Bazel 6.0.
Use the //foo/bar:bar spelling to avoid the error.
@jwnimmer-tri jwnimmer-tri added priority: low status: single reviewer ok https://drake.mit.edu/reviewable.html release notes: none This pull request should not be mentioned in the release notes labels Nov 3, 2022
@jwnimmer-tri jwnimmer-tri marked this pull request as ready for review November 3, 2022 16:18
@jwnimmer-tri
Copy link
Collaborator Author

+@EricCousineau-TRI for both reviews per schedule, please.

Copy link
Contributor

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: x2 with BTW on Label class

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion (waiting on @jwnimmer-tri)


tools/lint/library_lint.bzl line 99 at r1 (raw file):

    # Find libraries that are deps of the package_library but shouldn't be.
    extra_deps_expression = "deps({}, 1) except ({}) except {}".format(
        package_name + ":" + short_package_name,

BTW In future, consider using Label:
https://bazel.build/rules/lib/Label

Example usage: bazelbuild/bazel-skylib#393

@EricCousineau-TRI EricCousineau-TRI merged commit 99d7aef into RobotLocomotion:master Nov 3, 2022
@jwnimmer-tri jwnimmer-tri deleted the bazel-genquery-precision branch November 3, 2022 17:03
@jwnimmer-tri jwnimmer-tri mentioned this pull request Nov 3, 2022
2 tasks
xuchenhan-tri pushed a commit to xuchenhan-tri/drake that referenced this pull request Feb 6, 2023
Our genquery scope opts-in to the //foo/bar:bar library spelling, not
the //foo/bar abbreviation; this is flagged as an error in Bazel 6.0.
Use the //foo/bar:bar spelling to avoid the error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low release notes: none This pull request should not be mentioned in the release notes status: single reviewer ok https://drake.mit.edu/reviewable.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants