blob: 881d189d3f3843c5b187ae176aea992e06bb3951 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "testdb_server_lib",
srcs = ["main.go"],
importpath = "github.com/frc971/971-Robot-Code/scouting/db/testdb_server",
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:private"],
deps = ["@com_github_phst_runfiles//:go_default_library"],
)
go_binary(
name = "testdb_server",
data = [
"postgres_test.conf",
"@postgresql_amd64//:initdb",
"@postgresql_amd64//:postgres",
],
embed = [":testdb_server_lib"],
target_compatible_with = ["@platforms//cpu:x86_64"],
visibility = ["//visibility:public"],
)