peridot/vendor/github.com/cyphar/filepath-securejoin/BUILD.bazel
2024-10-16 12:56:53 +02:00

29 lines
816 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "filepath-securejoin",
srcs = [
"join.go",
"lookup_linux.go",
"mkdir_linux.go",
"open_linux.go",
"openat2_linux.go",
"openat_linux.go",
"procfs_linux.go",
"testing_mocks_linux.go",
"vfs.go",
],
importmap = "peridot.resf.org/vendor/github.com/cyphar/filepath-securejoin",
importpath = "github.com/cyphar/filepath-securejoin",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:android": [
"//vendor/golang.org/x/sys/unix",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/golang.org/x/sys/unix",
],
"//conditions:default": [],
}),
)