aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Schroeder <schroederc@google.com>2018-06-26 09:08:07 -0700
committerEugene Kliuchnikov <eustas@google.com>2018-06-26 18:08:07 +0200
commitee2a5e1540cbd6ef883a897499d9596307f7f7f9 (patch)
tree5f53c12d6ea548043280253e9412c8e1524fd344
parenteb12ec04ebb0e9ebb95bb2f13d1edfb62d7ae51d (diff)
downloadbrotli-ee2a5e1540cbd6ef883a897499d9596307f7f7f9.zip
brotli-ee2a5e1540cbd6ef883a897499d9596307f7f7f9.tar.gz
brotli-ee2a5e1540cbd6ef883a897499d9596307f7f7f9.tar.bz2
Update go_library to use standard importpath (#690)
* Update go_library to use standard importpath Instead of using go_prefix, which is deprecated, the importpath attribute is made explicit. * Add description to go/BUILD
-rw-r--r--go/BUILD5
-rw-r--r--go/cbrotli/BUILD7
2 files changed, 5 insertions, 7 deletions
diff --git a/go/BUILD b/go/BUILD
index de37047..72a5317 100644
--- a/go/BUILD
+++ b/go/BUILD
@@ -1,3 +1,2 @@
-load("@io_bazel_rules_go//go:def.bzl", "go_prefix")
-
-go_prefix("github.com/google/brotli")
+# Description:
+# cbrotli is a CGo wrapper for Brotli, a generic-purpose lossless compression algorithm.
diff --git a/go/cbrotli/BUILD b/go/cbrotli/BUILD
index 0f23a15..ce594ad 100644
--- a/go/cbrotli/BUILD
+++ b/go/cbrotli/BUILD
@@ -2,9 +2,7 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
-load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_library", "go_test")
-
-go_prefix("github.com/google/brotli")
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cbrotli",
@@ -16,7 +14,8 @@ go_library(
"@org_brotli//:brotlidec",
"@org_brotli//:brotlienc",
],
- cgo=True,
+ cgo = True,
+ importpath = "github.com/google/brotli/go/cbrotli",
)
go_test(