mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
This adds support for the OpenCodeGraph prototype. Feature-flagged off by default behind the `opencodegraph` feature flag. See https://www.loom.com/share/5549d92a7c244863ac86ce56692ca030 for more information. Also, for our CodeMirror, remove `background:transparent` so that line bg applies to block widgets
36 lines
896 B
Python
36 lines
896 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
load("//dev:go_defs.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "opencodegraph",
|
|
srcs = [
|
|
"amplitude_provider.go",
|
|
"chromatic_util.go",
|
|
"doc.go",
|
|
"docs_provider.go",
|
|
"googledocs_provider.go",
|
|
"grafana_provider.go",
|
|
"multi.go",
|
|
"protocol.go",
|
|
"providers.go",
|
|
"storybook_provider.go",
|
|
"util.go",
|
|
],
|
|
importpath = "github.com/sourcegraph/sourcegraph/internal/opencodegraph",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//lib/errors",
|
|
"//schema",
|
|
"@com_github_grafana_regexp//:regexp",
|
|
"@org_golang_x_net//context/ctxhttp",
|
|
"@org_golang_x_sync//errgroup",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "opencodegraph_test",
|
|
srcs = ["protocol_test.go"],
|
|
embed = [":opencodegraph"],
|
|
deps = ["//schema"],
|
|
)
|