You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0443108
Browse filesBrowse the repository at this point in the historyBrowse files
fix/search: print partial results when there are graphql errors
src search discarded every result and exited non-zero when the GraphQL
response carried errors for individual results, such as
"repository does not exist" on one result's file.content. Treat errors
that arrive alongside results as warnings (printed to stderr, in full
with -v) and only fail hard when no results came back, matching the
behaviour src repos list got in #1282.
Fixes#1150
Amp-Thread-ID: https://ampcode.com/threads/T-01a18b53-40bb-7118-975d-9c1b224f5602
Co-authored-by: Amp <amp@ampcode.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ All notable changes to `src-cli` are documented in this file.
22
22
23
23
### Fixed
24
24
25
+
-`src search` no longer discards all results when the GraphQL response contains errors for some of them (for example, `repository does not exist` for a repository deleted mid-search). The results are printed, and the errors are reported as warnings; rerun with `-v` to inspect them. [#1150](https://github.com/sourcegraph/src-cli/issues/1150)
25
26
-`src doc` now generates reference pages for the `search-jobs`, `debug`, and `snapshot` subcommands, and the root `index.md` again lists legacy commands (`batch`, `repos`, `search`, ...) alongside the `urfave/cli` ones.
0 commit comments