mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
bazel: fix sg starts tests in //dev/sg (#47694)
Fixes `bazel test //dev/sg:sg_test` by exporting go.mod for `sg_test` Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
This commit is contained in:
parent
2e60c065ed
commit
78c5353b75
@ -108,3 +108,5 @@ js_library(
|
||||
"//:node_modules/postcss-inset",
|
||||
],
|
||||
)
|
||||
|
||||
exports_files(["go.mod"])
|
||||
|
||||
@ -137,7 +137,11 @@ go_test(
|
||||
"sg_start_test.go",
|
||||
"suggest_test.go",
|
||||
],
|
||||
# Required by func findRoot() to check if sg is running in sourcegraph/sourcegraph
|
||||
data = ["//:go.mod"],
|
||||
embed = [":sg_lib"],
|
||||
# HOME is required to be set to start sg
|
||||
env = {"HOME": "/tmp"},
|
||||
deps = [
|
||||
"//dev/sg/internal/run",
|
||||
"//dev/sg/internal/sgconf",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user