gazelle works, tests work
parent
2ceca7fdee
commit
da93cf070b
@ -0,0 +1,18 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "demo_lib",
|
||||
srcs = ["main.go"],
|
||||
importpath = "code.ndumas.com/ndumas/obsidian-markdown/cmd/demo",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//:obsidian-markdown",
|
||||
"@org_uber_go_zap//zapcore:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
name = "demo",
|
||||
embed = [":demo_lib"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
@ -0,0 +1,87 @@
|
||||
load("@bazel_gazelle//:deps.bzl", "go_repository")
|
||||
|
||||
def go_dependencies():
|
||||
go_repository(
|
||||
name = "com_github_benbjohnson_clock",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/benbjohnson/clock",
|
||||
sum = "h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=",
|
||||
version = "v1.1.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_davecgh_go_spew",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/davecgh/go-spew",
|
||||
sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
|
||||
version = "v1.1.1",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_pkg_errors",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/pkg/errors",
|
||||
sum = "h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=",
|
||||
version = "v0.8.1",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_pmezard_go_difflib",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/pmezard/go-difflib",
|
||||
sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=",
|
||||
version = "v1.0.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_stretchr_objx",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/stretchr/objx",
|
||||
sum = "h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4=",
|
||||
version = "v0.4.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_stretchr_testify",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/stretchr/testify",
|
||||
sum = "h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=",
|
||||
version = "v1.8.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "in_gopkg_check_v1",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "gopkg.in/check.v1",
|
||||
sum = "h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=",
|
||||
version = "v0.0.0-20161208181325-20d25e280405",
|
||||
)
|
||||
go_repository(
|
||||
name = "in_gopkg_yaml_v3",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "gopkg.in/yaml.v3",
|
||||
sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=",
|
||||
version = "v3.0.1",
|
||||
)
|
||||
go_repository(
|
||||
name = "org_uber_go_atomic",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "go.uber.org/atomic",
|
||||
sum = "h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=",
|
||||
version = "v1.7.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "org_uber_go_goleak",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "go.uber.org/goleak",
|
||||
sum = "h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI=",
|
||||
version = "v1.1.11",
|
||||
)
|
||||
go_repository(
|
||||
name = "org_uber_go_multierr",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "go.uber.org/multierr",
|
||||
sum = "h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=",
|
||||
version = "v1.6.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "org_uber_go_zap",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "go.uber.org/zap",
|
||||
sum = "h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=",
|
||||
version = "v1.24.0",
|
||||
)
|
Loading…
Reference in New Issue