sourcegraph/lib
Keegan Carruthers-Smith fff4b48497
lib/output: ForceTTY can be used to disable Isatty (#60640)
For tests we do not want to use the detection on os.Stdout to change
what output we capture and assert against. In particular when running
the sg tests for me under emacs's compilation-mode I get failures due to
extra escape codes.

This is a different take on ensuring tests do not have Isatty enabled.
The previous attempt used the passed in writer to determine this.
However, on further inspection of call sites we somewhat regularly
captures the output and then only show it if something went wrong. In
those cases we should preserve Isatty of stdout so the errors look
prettier.

Test Plan: go test -short ./...
2024-02-21 09:18:06 +02:00
..
api enterprise: Move last directory out (#57392) 2023-10-05 20:15:40 +00:00
background bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
batches code-search: handle changeset fork when creating a batch change via src-cli (#58156) 2023-11-08 09:55:05 +01:00
cliutil sg: improve positional completions (#58569) 2023-11-27 16:30:59 -08:00
codeintel codeintel: Refine language detection for extensions (#59318) 2024-01-04 23:52:54 +08:00
errors chore: links/ownership devx->dev-infra (#58999) 2023-12-14 15:07:20 +00:00
gitservice gitservice: use an error hook instead of a logger (#56611) 2023-09-14 12:36:05 +02:00
iterator ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
managedservicesplatform pings, telemetry-gateway: stop pubsub client before stopping server (#60451) 2024-02-14 11:33:31 +04:00
output lib/output: ForceTTY can be used to disable Isatty (#60640) 2024-02-21 09:18:06 +02:00
pointers msp: add monitoring stack (#58816) 2023-12-13 19:40:57 +00:00
process vcssyncer: Move clone implementation details into syncer (#57688) 2023-10-27 20:55:59 +02:00
servicecatalog Remove GitHub proxy service (#56485) 2023-09-14 19:43:40 +02:00
go.mod Bump go-mockgen to include lenient type checking (#59397) 2024-01-08 21:20:24 +00:00
go.sum Bump go-mockgen to include lenient type checking (#59397) 2024-01-08 21:20:24 +00:00
README.md lib: Introduce non-enterprise lib directory (#18992) 2021-03-10 19:41:33 -06:00
tools.go build with go 1.17 (#24566) 2021-09-03 14:46:55 +00:00

Sourcegraph lib module

This directory is the root of a separate go module from the primary module rooted at sourcegraph/sourcegraph. This module exists to hold code that we want to reuse outside of the sourcegraph/sourcegraph repo.

Code in this module should not import from sourcegraph/sourcegraph or from other Sourcegraph repositories to avoid complicated dependency relationships. Instead consider moving code from elsewhere into this module.