mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-24 14:11:25 +00:00
29 lines
816 B
Python
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": [],
|
||
|
}),
|
||
|
)
|