load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "go_default_library",
    srcs = [
        "chtimes.go",
        "chtimes_unix.go",
        "chtimes_windows.go",
        "errors.go",
        "events_windows.go",
        "exitcode.go",
        "filesys.go",
        "filesys_windows.go",
        "lstat.go",
        "lstat_windows.go",
        "meminfo.go",
        "meminfo_linux.go",
        "meminfo_solaris.go",
        "meminfo_unsupported.go",
        "meminfo_windows.go",
        "mknod.go",
        "mknod_windows.go",
        "path_unix.go",
        "path_windows.go",
        "stat.go",
        "stat_darwin.go",
        "stat_freebsd.go",
        "stat_linux.go",
        "stat_openbsd.go",
        "stat_solaris.go",
        "stat_unsupported.go",
        "stat_windows.go",
        "syscall_unix.go",
        "syscall_windows.go",
        "umask.go",
        "umask_windows.go",
        "utimes_freebsd.go",
        "utimes_linux.go",
        "utimes_unsupported.go",
        "xattrs_linux.go",
        "xattrs_unsupported.go",
    ],
    cgo = True,
    clinkopts = select({
        "@io_bazel_rules_go//go/platform:solaris": [
            "-lkstat",
        ],
        "//conditions:default": [],
    }),
    importmap = "kubevirt.io/kubevirtci/cluster-provision/gocli/vendor/github.com/docker/docker/pkg/system",
    importpath = "github.com/docker/docker/pkg/system",
    visibility = ["//visibility:public"],
    deps = select({
        "@io_bazel_rules_go//go/platform:linux": [
            "//vendor/github.com/docker/go-units:go_default_library",
        ],
        "@io_bazel_rules_go//go/platform:windows": [
            "//vendor/github.com/Microsoft/go-winio:go_default_library",
            "//vendor/github.com/Sirupsen/logrus:go_default_library",
            "//vendor/golang.org/x/sys/windows:go_default_library",
        ],
        "//conditions:default": [],
    }),
)
