26 lines
559 B
Python
26 lines
559 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "dhcp",
|
|
srcs = [
|
|
"offer.go",
|
|
"options.go",
|
|
"packet.go",
|
|
"parameters.go",
|
|
"read_options.go",
|
|
],
|
|
importpath = "git.wntrmute.dev/kyle/kdhcp/dhcp",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//leases",
|
|
"@dev_wntrmute_git_kyle_goutils//assert",
|
|
"@dev_wntrmute_git_kyle_goutils//log",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "dhcp_test",
|
|
srcs = ["parameters_test.go"],
|
|
embed = [":dhcp"],
|
|
)
|