-
Notifications
You must be signed in to change notification settings - Fork 66
campaigns preview panics while resolving repositories #382
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
Labels
bug
Something isn't working
Comments
Thanks @evanweible-wf! I'll take a look. Thanks for the stacktrace! |
mrnugget
added a commit
that referenced
this issue
Nov 17, 2020
This fixes #382 by fixing a regression that was introduced by #361. When the search queries defined in a campaign spec yielded a repository match result and file match results in the same repository, in that order, the code would crash because of an uninitialized map. The code here fixes it by always initializing the map. I also added a test that reproduces the behaviour and documents how we turn multiple search results into a list of repositories.
I could reproduce this. Fix is here: #385 As soon as it's merged, I'll cut a new patch release. |
mrnugget
added a commit
that referenced
this issue
Nov 17, 2020
This fixes #382 by fixing a regression that was introduced by #361. When the search queries defined in a campaign spec yielded a repository match result and file match results in the same repository, in that order, the code would crash because of an uninitialized map. The code here fixes it by always initializing the map. I also added a test that reproduces the behaviour and documents how we turn multiple search results into a list of repositories.
scjohns
pushed a commit
that referenced
this issue
Apr 24, 2023
This fixes #382 by fixing a regression that was introduced by #361. When the search queries defined in a campaign spec yielded a repository match result and file match results in the same repository, in that order, the code would crash because of an uninitialized map. The code here fixes it by always initializing the map. I also added a test that reproduces the behaviour and documents how we turn multiple search results into a list of repositories.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
src-cli version: 3.22.0
recommended version by our deployment: 3.20.0
repositoriesMatchingQuery: dart_functional_test_image or dart_unit_test_image
I hit this while trying to preview a campaign spec,
although I'm not actually sure if this is a valid query, as I was under the impression that file-contents searches didn't work for campaigns. So maybe that's the issueRead through the most recent docs and see a similar query in the examples, so I guess it is a valid query. Either way, a panic is probably not the expected result.Output:
The text was updated successfully, but these errors were encountered: