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

Decanonicalize labels emitted by {a,c,}query if possible #16483

Closed
wants to merge 2 commits into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Oct 16, 2022

Uses the newly added PackageIdentifier#getDisplayForm to turn labels
in the output of query, aquery, and cquery into the most concise
representation that allows them to be resolved from the context of the
main repository.

@fmeum fmeum force-pushed the decanonicalize-query-output branch 7 times, most recently from cb269bb to edc9166 Compare October 16, 2022 13:21
@fmeum fmeum force-pushed the decanonicalize-query-output branch 5 times, most recently from 031673b to 30b3d98 Compare October 18, 2022 17:26
@fmeum fmeum changed the title WIP: Decanonicalize query output Decanonicalize labels emitted by {a,c,}query if possible Oct 18, 2022
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 18, 2022

Stacked on #16482 and thus in draft state, but otherwise ready for review.

@fmeum fmeum force-pushed the decanonicalize-query-output branch from 30b3d98 to b897596 Compare October 18, 2022 17:38
@fmeum fmeum marked this pull request as ready for review October 18, 2022 17:38
@fmeum fmeum marked this pull request as draft October 18, 2022 17:39
@lberki lberki removed their request for review October 19, 2022 09:29
@fmeum fmeum force-pushed the decanonicalize-query-output branch 2 times, most recently from 37eefc6 to dba373e Compare October 19, 2022 20:01
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 19, 2022

I pushed a commit that updates more formatters.

This PR doesn't cover the BUILD-like output modes, which would have to decanonicalize labels with respect to the current rather than the main repository. That would require more changes though that I could do as a follow-up.

@fmeum fmeum force-pushed the decanonicalize-query-output branch 2 times, most recently from b4c225c to 566113c Compare October 19, 2022 20:37
@fmeum fmeum marked this pull request as ready for review October 24, 2022 11:41
@fmeum fmeum force-pushed the decanonicalize-query-output branch from 566113c to c341e14 Compare October 24, 2022 13:17
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 24, 2022

@Wyverald I rebased onto master, this is ready for review now.

@fmeum fmeum force-pushed the decanonicalize-query-output branch from c341e14 to 1ab51de Compare October 24, 2022 14:06
@fmeum fmeum requested review from Wyverald and removed request for meteorcloudy October 24, 2022 14:06
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 25, 2022

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Oct 25, 2022
Uses the newly added `PackageIdentifier#getDisplayForm` to turn labels
in the output of query, aquery, and cquery into the most concise
representation that allows them to be resolved from the context of the
main repository.
@fmeum fmeum force-pushed the decanonicalize-query-output branch from 1ab51de to 5a0c70a Compare October 31, 2022 11:02
@sgowroji sgowroji added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Oct 31, 2022
@ShreeM01
Copy link
Contributor

ShreeM01 commented Nov 2, 2022

Hello @Wyverald, As I could see we are good to merge the PR, does it require any further review? Thanks!

@fmeum
Copy link
Collaborator Author

fmeum commented Nov 2, 2022

@kshyanashree Yes, this is good to merge!

@meteorcloudy
Copy link
Member

@bazel-io fork 6.0.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Nov 2, 2022
@copybara-service copybara-service bot closed this in a757852 Nov 2, 2022
@fmeum fmeum deleted the decanonicalize-query-output branch November 2, 2022 19:50
fmeum added a commit to fmeum/bazel that referenced this pull request Nov 2, 2022
Uses the newly added `PackageIdentifier#getDisplayForm` to turn labels
in the output of query, aquery, and cquery into the most concise
representation that allows them to be resolved from the context of the
main repository.

Closes bazelbuild#16483.

PiperOrigin-RevId: 485584469
Change-Id: I9037bf128713af75b6741eca42b25e3beeb112f7
ShreeM01 added a commit that referenced this pull request Nov 2, 2022
Uses the newly added `PackageIdentifier#getDisplayForm` to turn labels
in the output of query, aquery, and cquery into the most concise
representation that allows them to be resolved from the context of the
main repository.

Closes #16483.

PiperOrigin-RevId: 485584469
Change-Id: I9037bf128713af75b6741eca42b25e3beeb112f7

Co-authored-by: kshyanashree <109167932+kshyanashree@users.noreply.github.com>
@ShreeM01
Copy link
Contributor

ShreeM01 commented Nov 2, 2022

merged in #16638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants