From ee2a5e1540cbd6ef883a897499d9596307f7f7f9 Mon Sep 17 00:00:00 2001 From: Cody Schroeder Date: Tue, 26 Jun 2018 09:08:07 -0700 Subject: 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 --- go/BUILD | 5 ++--- go/cbrotli/BUILD | 7 +++---- 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( -- cgit v1.1