diff --git a/BUILD.bazel b/BUILD.bazel index fa255f2..07a4716 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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"], @@ -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"], diff --git a/deps.bzl b/deps.bzl index 49341c1..955cd44 100644 --- a/deps.bzl +++ b/deps.bzl @@ -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", + ) diff --git a/example_bazel/BUILD.bazel b/example_bazel/BUILD.bazel index a3b764a..95f90be 100644 --- a/example_bazel/BUILD.bazel +++ b/example_bazel/BUILD.bazel @@ -62,6 +62,7 @@ container_image( files = [":rpmtest.rpm"], legacy_run_behavior = False, ) + docker_diff( name = "fedora_V", base = ":fedora_with_rpm",