Skip to content

Commit 2051a40

Browse files
korylprinceKory Prince
authored and
Kory Prince
committed
update go.mod/bazel
1 parent 9d43df3 commit 2051a40

File tree

7 files changed

+37
-4
lines changed

7 files changed

+37
-4
lines changed

BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ go_library(
3737
importpath = "github.com/macadmins/osquery-extension",
3838
visibility = ["//visibility:private"],
3939
deps = [
40+
"//tables/alt_system_info",
4041
"//tables/authdb",
4142
"//tables/chromeuserprofiles",
4243
"//tables/fileline",

MODULE.bazel.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/osquery/osquery-go v0.0.0-20231130195733-61ac79279aaa
99
github.com/pkg/errors v0.9.1
1010
github.com/stretchr/testify v1.9.0
11+
golang.org/x/sync v0.8.0
1112
gopkg.in/yaml.v3 v3.0.1
1213
)
1314

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ go.opentelemetry.io/otel/metric v1.16.0 h1:RbrpwVG1Hfv85LgnZ7+txXioPDoh6EdbZHo26
4040
go.opentelemetry.io/otel/metric v1.16.0/go.mod h1:QE47cpOmkwipPiefDwo2wDzwJrlfxxNYodqc4xnGCo4=
4141
go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs=
4242
go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0=
43+
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
44+
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
4345
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
4446
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
4547
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

pkg/utils/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go_library(
55
srcs = [
66
"exec.go",
77
"exec_mocks.go",
8+
"osquery.go",
89
"utils.go",
910
],
1011
importpath = "github.com/macadmins/osquery-extension/pkg/utils",

tables/alt_system_info/BUILD.bazel

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2+
3+
go_library(
4+
name = "alt_system_info",
5+
srcs = ["alt_system_info.go"],
6+
importpath = "github.com/macadmins/osquery-extension/tables/alt_system_info",
7+
visibility = ["//visibility:public"],
8+
deps = [
9+
"//pkg/utils",
10+
"@com_github_groob_plist//:plist",
11+
"@com_github_osquery_osquery_go//:osquery-go",
12+
"@com_github_osquery_osquery_go//plugin/table",
13+
"@org_golang_x_sync//errgroup:go_default_library",
14+
],
15+
)
16+
17+
go_test(
18+
name = "alt_system_info_test",
19+
srcs = ["alt_system_info_test.go"],
20+
deps = [
21+
":alt_system_info",
22+
"//pkg/utils",
23+
"@com_github_stretchr_testify//assert",
24+
"@com_github_stretchr_testify//require",
25+
],
26+
)

tables/wifi_network/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ go_library(
66
importpath = "github.com/macadmins/osquery-extension/tables/wifi_network",
77
visibility = ["//visibility:public"],
88
deps = [
9+
"//pkg/utils",
910
"@com_github_osquery_osquery_go//:osquery-go",
1011
"@com_github_osquery_osquery_go//plugin/table",
1112
"@com_github_pkg_errors//:errors",
@@ -18,6 +19,7 @@ go_test(
1819
embed = [":wifi_network"],
1920
embedsrcs = ["wdutil_out.txt"],
2021
deps = [
22+
"//pkg/utils",
2123
"@com_github_osquery_osquery_go//plugin/table",
2224
"@com_github_stretchr_testify//assert",
2325
],

0 commit comments

Comments
 (0)