fix(gopackagesdriver): Improve wildcard package query matching#4288
Merged
fmeum merged 2 commits intobazel-contrib:masterfrom Jan 8, 2026
Merged
Conversation
Aaronkala
commented
Mar 6, 2025
Member
|
What does the actual kind look like in that case that it doesn't match the start of string? |
Contributor
Author
|
@fmeum all the returned results without "^" start with I'm not sure if this is what you mean by "kind" |
Member
|
Thanks, I thought this also affected the usage of |
fmeum
approved these changes
Mar 6, 2025
23be4f0 to
e7568c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
Improve wildcard package loading (
./something/...) when using a custom bazelQueryScope e.g.//.... Currently, the queryFromRequests transformation results in a query like:which fails to return any results due to the
^start of string matching. This PR also aligns the behaviour more closely to the "non wild card" behaviour (see) by omitting the^.When using go outside bazel, the following query is valid syntax and correctly loads all the packages under
./something/:Which issues(s) does this PR fix?
No issue
Other notes for review