fix dependency issues.

This commit is contained in:
Kyle Isom 2023-05-04 23:45:08 -07:00
parent 9091cc7682
commit c1f06604e3
5 changed files with 58 additions and 13 deletions

View File

@ -5,7 +5,10 @@ go_library(
srcs = ["main.go"], srcs = ["main.go"],
importpath = "git.wntrmute.dev/kyle/goutils/cmd/cruntar", importpath = "git.wntrmute.dev/kyle/goutils/cmd/cruntar",
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
deps = ["//die"], deps = [
"//die",
"//fileutil",
],
) )
go_binary( go_binary(

View File

@ -6,8 +6,8 @@ go_library(
importpath = "git.wntrmute.dev/kyle/goutils/cmd/showimp", importpath = "git.wntrmute.dev/kyle/goutils/cmd/showimp",
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
deps = [ deps = [
"//dbg",
"//die", "//die",
"//logging",
], ],
) )

View File

@ -2,8 +2,53 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library( go_library(
name = "fileutil", name = "fileutil",
srcs = ["fileutil.go"], srcs = [
"fileutil.go",
"fileutil_windows.go",
"symlinks.go",
],
importpath = "git.wntrmute.dev/kyle/goutils/fileutil", importpath = "git.wntrmute.dev/kyle/goutils/fileutil",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = ["@org_golang_x_sys//unix"], deps = select({
"@io_bazel_rules_go//go/platform:aix": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:android": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:darwin": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:illumos": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:ios": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:js": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:linux": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:plan9": [
"@org_golang_x_sys//unix",
],
"@io_bazel_rules_go//go/platform:solaris": [
"@org_golang_x_sys//unix",
],
"//conditions:default": [],
}),
) )

2
go.mod
View File

@ -13,3 +13,5 @@ require (
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad golang.org/x/sys v0.0.0-20220412211240-33da011f77ad
gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v2 v2.4.0
) )
require github.com/davecgh/go-spew v1.1.1

View File

@ -1,17 +1,12 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library") load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "log",
srcs = ["logger.go"],
importpath = "git.wntrmute.dev/kyle/kdhcp/log",
visibility = ["//visibility:public"],
deps = ["@com_github_hashicorp_go_syslog//:go-syslog"],
)
go_library( go_library(
name = "syslog", name = "syslog",
srcs = ["logger.go"], srcs = ["logger.go"],
importpath = "git.wntrmute.dev/kyle/goutils/syslog", importpath = "git.wntrmute.dev/kyle/goutils/syslog",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = ["@com_github_hashicorp_go_syslog//:go-syslog"], deps = [
"@com_github_davecgh_go_spew//spew",
"@com_github_hashicorp_go_syslog//:go-syslog",
],
) )