Skip to content

Commit

Permalink
Merge pull request #28 from jarondl/buildifier
Browse files Browse the repository at this point in the history
format bazel files with buildifier
  • Loading branch information
jarondl authored Oct 8, 2019
2 parents 07246cf + 5e30e2f commit 0a19814
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
8 changes: 4 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ go_library(
name = "go_default_library",
srcs = [
"dir.go",
"file_types.go",
"header.go",
"rpm.go",
"sense.go",
"tags.go",
"tar.go",
"file_types.go",
"sense.go"
],
importpath = "github.com/google/rpmpack",
visibility = ["//visibility:public"],
Expand All @@ -33,10 +33,10 @@ go_test(
name = "go_default_test",
srcs = [
"dir_test.go",
"header_test.go",
"tar_test.go",
"file_types_test.go",
"header_test.go",
"sense_test.go",
"tar_test.go",
],
data = glob(["testdata/**"]),
embed = [":go_default_library"],
Expand Down
50 changes: 24 additions & 26 deletions deps.bzl
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")


def rpmpack_dependencies():
go_rules_dependencies()
go_register_toolchains()
gazelle_dependencies()

go_rules_dependencies()
go_register_toolchains()
gazelle_dependencies()

go_repository(
name = "com_github_pkg_errors",
importpath = "github.com/pkg/errors",
tag = "v0.8.1",
)
go_repository(
name = "com_github_pkg_errors",
importpath = "github.com/pkg/errors",
tag = "v0.8.1",
)

go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
tag = "v0.2.0",
)
go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
tag = "v0.2.0",
)

go_repository(
name = "com_github_cavaliercoder_go_cpio",
commit = "925f9528c45e",
importpath = "github.com/cavaliercoder/go-cpio",
)
go_repository(
name = "com_github_cavaliercoder_go_cpio",
commit = "925f9528c45e",
importpath = "github.com/cavaliercoder/go-cpio",
)

go_repository(
name = "com_github_ulikunitz_xz",
importpath = "github.com/ulikunitz/xz",
tag = "v0.5.6",
)
go_repository(
name = "com_github_ulikunitz_xz",
importpath = "github.com/ulikunitz/xz",
tag = "v0.5.6",
)
1 change: 1 addition & 0 deletions example_bazel/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ container_image(
files = [":rpmtest.rpm"],
legacy_run_behavior = False,
)

docker_diff(
name = "fedora_V",
base = ":fedora_with_rpm",
Expand Down

0 comments on commit 0a19814

Please sign in to comment.