blob: f0bd43b150a69d96c26c5b8a3182df6b0d39d381 [file] [log] [blame]
Philipp Schrader7365d322022-03-06 16:40:08 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
4 name = "testdb_server_lib",
5 srcs = ["main.go"],
6 importpath = "github.com/frc971/971-Robot-Code/scouting/db/testdb_server",
7 target_compatible_with = ["@platforms//cpu:x86_64"],
8 visibility = ["//visibility:private"],
Philipp Schrader20035262023-03-05 15:03:19 -08009 deps = ["@io_bazel_rules_go//go/runfiles:go_default_library"],
Philipp Schrader7365d322022-03-06 16:40:08 -080010)
11
12go_binary(
13 name = "testdb_server",
14 data = [
15 "postgres_test.conf",
16 "@postgresql_amd64//:initdb",
17 "@postgresql_amd64//:postgres",
18 ],
19 embed = [":testdb_server_lib"],
20 target_compatible_with = ["@platforms//cpu:x86_64"],
21 visibility = ["//visibility:public"],
22)