blob: c643192b47dd5afec92b61ceff990c6dd4f6be49 [file] [log] [blame]
Het Satasiyac34b3ea2022-02-06 17:28:49 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
Het Satasiyac6df3322022-02-05 14:12:30 -08002
Philipp Schraderd3fac192022-03-02 20:35:46 -08003filegroup(
4 name = "test_data",
5 srcs = [
6 # Generated with: bazel run //scouting/scraping:scraping_demo -- --json
7 "test_data/2016_nytr.json",
Philipp Schrader30005e42022-03-06 13:53:58 -08008 "test_data/2020_fake.json",
Philipp Schraderd3fac192022-03-02 20:35:46 -08009 ],
10 visibility = ["//visibility:public"],
11)
12
Het Satasiyac6df3322022-02-05 14:12:30 -080013go_library(
14 name = "scraping",
15 srcs = [
16 "scrape.go",
17 "types.go",
18 ],
19 importpath = "github.com/frc971/971-Robot-Code/scouting/scraping",
20 target_compatible_with = ["@platforms//cpu:x86_64"],
21 visibility = ["//visibility:public"],
22)
Het Satasiyac34b3ea2022-02-06 17:28:49 -080023
24go_binary(
25 name = "scraping_demo",
26 srcs = ["scraping_demo.go"],
27 target_compatible_with = ["@platforms//cpu:x86_64"],
28 visibility = ["//visibility:public"],
29 deps = [
30 "scraping",
31 "@com_github_davecgh_go_spew//spew:go_default_library",
32 ],
33)