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
This commit is contained in:
Cody Schroeder 2018-06-26 09:08:07 -07:00 committed by Eugene Kliuchnikov
parent eb12ec04eb
commit ee2a5e1540
2 changed files with 5 additions and 7 deletions

View File

@ -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.

View File

@ -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(