2021-05-24 00:11:57 +03:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2021-05-24 00:11:57 +03:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "rootfs_lib",
|
2021-05-24 00:11:57 +03:00
|
|
|
srcs = ["rootfs.go"],
|
2021-05-24 00:11:57 +03:00
|
|
|
importpath = "github.com/motiejus/code/undocker/rootfs",
|
|
|
|
visibility = ["//visibility:public"],
|
2021-05-24 00:11:57 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "rootfs_test",
|
|
|
|
srcs = ["rootfs_test.go"],
|
|
|
|
embed = [":rootfs"],
|
2021-05-24 00:11:57 +03:00
|
|
|
deps = [
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@com_github_stretchr_testify//require",
|
|
|
|
],
|
2021-05-24 00:11:57 +03:00
|
|
|
)
|