Update golang and JS Bazel plugins to latest stable versions. (#676)

This commit is contained in:
Eugene Kliuchnikov 2018-05-31 13:21:04 +02:00 committed by GitHub
parent f9b8c02673
commit 29dc2cce90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View File

@ -8,19 +8,19 @@ maven_jar(
artifact = "junit:junit:4.12",
)
git_repository(
http_archive(
name = "io_bazel_rules_go",
remote = "https://github.com/bazelbuild/rules_go.git",
tag = "0.9.0",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz"],
sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3",
)
http_archive(
name = "io_bazel_rules_closure",
sha256 = "6691c58a2cd30a86776dd9bb34898b041e37136f2dc7e24cadaeaf599c95c657",
strip_prefix = "rules_closure-08039ba8ca59f64248bb3b6ae016460fe9c9914f",
sha256 = "a80acb69c63d5f6437b099c111480a4493bad4592015af2127a2f49fb7512d8d",
strip_prefix = "rules_closure-0.7.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz", # 2018-01-16
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz",
],
)

View File

@ -2,11 +2,11 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "cgo_library", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_library", "go_test")
go_prefix("github.com/google/brotli")
cgo_library(
go_library(
name = "cbrotli",
srcs = [
"reader.go",
@ -16,11 +16,12 @@ cgo_library(
"//:brotlidec",
"//:brotlienc",
],
cgo=True,
)
go_test(
name = "cbrotli_test",
size = "small",
srcs = ["cbrotli_test.go"],
library = ":cbrotli",
embed = [":cbrotli"],
)

View File

@ -11,7 +11,9 @@ closure_js_library(
name = "polyfill",
srcs = ["polyfill.js"],
suppress = [
"JSC_INVALID_OPERAND_TYPE",
"JSC_MISSING_JSDOC",
"JSC_STRICT_INEXISTENT_PROPERTY",
"JSC_TYPE_MISMATCH",
"JSC_UNKNOWN_EXPR_TYPE",
],