Merge branch 'stable-2.15' into stable-2.16
* stable-2.15: PolyGerrit: Suppress JSC_REFERENCE_BEFORE_DECLARE error ElasticContainer: Use version 7.0.0-rc2 for V7_0 tests Bazel: Avoid using tools in action inputs Update rules_closure to latest version Change-Id: I30896f8226ea1838dc9556a1f95483a33fd34aee
This commit is contained in:
		
							
								
								
									
										20
									
								
								WORKSPACE
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								WORKSPACE
									
									
									
									
									
								
							@@ -15,9 +15,23 @@ http_archive(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
http_archive(
 | 
					http_archive(
 | 
				
			||||||
    name = "io_bazel_rules_closure",
 | 
					    name = "io_bazel_rules_closure",
 | 
				
			||||||
    sha256 = "ddce3b3a3909f99b28b25071c40b7fec7e2e1d1d1a4b2e933f3082aa99517105",
 | 
					    sha256 = "34abd9170fdbfdfc6f3b63f2c18cee3cbcb2ddbd5e3c97324add0aa7809ed875",
 | 
				
			||||||
    strip_prefix = "rules_closure-316e6133888bfc39fb860a4f1a31cfcbae485aef",
 | 
					    strip_prefix = "rules_closure-9d543facf886631e4ed379996e60ce3533188adc",
 | 
				
			||||||
    urls = ["https://github.com/bazelbuild/rules_closure/archive/316e6133888bfc39fb860a4f1a31cfcbae485aef.tar.gz"],
 | 
					    urls = ["https://github.com/bazelbuild/rules_closure/archive/9d543facf886631e4ed379996e60ce3533188adc.tar.gz"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Transitive dependency of rules_closure and protobuf
 | 
				
			||||||
 | 
					http_archive(
 | 
				
			||||||
 | 
					    name = "net_zlib",
 | 
				
			||||||
 | 
					    build_file = "//:lib/zlib/BUILD",
 | 
				
			||||||
 | 
					    sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
 | 
				
			||||||
 | 
					    strip_prefix = "zlib-1.2.11",
 | 
				
			||||||
 | 
					    urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bind(
 | 
				
			||||||
 | 
					    name = "zlib",
 | 
				
			||||||
 | 
					    actual = "@net_zlib//:zlib",
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# File is specific to Polymer and copied from the Closure Github -- should be
 | 
					# File is specific to Polymer and copied from the Closure Github -- should be
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,7 +51,7 @@ public class ElasticContainer extends ElasticsearchContainer {
 | 
				
			|||||||
      case V6_7:
 | 
					      case V6_7:
 | 
				
			||||||
        return "docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.0";
 | 
					        return "docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.0";
 | 
				
			||||||
      case V7_0:
 | 
					      case V7_0:
 | 
				
			||||||
        return "docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.0-rc1";
 | 
					        return "docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.0-rc2";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    throw new IllegalStateException("No tests for version: " + version.name());
 | 
					    throw new IllegalStateException("No tests for version: " + version.name());
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										60
									
								
								lib/zlib/BUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								lib/zlib/BUILD
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
				
			|||||||
 | 
					package(default_visibility = ["//visibility:public"])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					licenses(["notice"])  # BSD/MIT-like license (for zlib)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_ZLIB_HEADERS = [
 | 
				
			||||||
 | 
					    "crc32.h",
 | 
				
			||||||
 | 
					    "deflate.h",
 | 
				
			||||||
 | 
					    "gzguts.h",
 | 
				
			||||||
 | 
					    "inffast.h",
 | 
				
			||||||
 | 
					    "inffixed.h",
 | 
				
			||||||
 | 
					    "inflate.h",
 | 
				
			||||||
 | 
					    "inftrees.h",
 | 
				
			||||||
 | 
					    "trees.h",
 | 
				
			||||||
 | 
					    "zconf.h",
 | 
				
			||||||
 | 
					    "zlib.h",
 | 
				
			||||||
 | 
					    "zutil.h",
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_ZLIB_PREFIXED_HEADERS = ["zlib/include/" + hdr for hdr in _ZLIB_HEADERS]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# In order to limit the damage from the `includes` propagation
 | 
				
			||||||
 | 
					# via `:zlib`, copy the public headers to a subdirectory and
 | 
				
			||||||
 | 
					# expose those.
 | 
				
			||||||
 | 
					genrule(
 | 
				
			||||||
 | 
					    name = "copy_public_headers",
 | 
				
			||||||
 | 
					    srcs = _ZLIB_HEADERS,
 | 
				
			||||||
 | 
					    outs = _ZLIB_PREFIXED_HEADERS,
 | 
				
			||||||
 | 
					    cmd = "cp $(SRCS) $(@D)/zlib/include/",
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cc_library(
 | 
				
			||||||
 | 
					    name = "zlib",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "adler32.c",
 | 
				
			||||||
 | 
					        "compress.c",
 | 
				
			||||||
 | 
					        "crc32.c",
 | 
				
			||||||
 | 
					        "deflate.c",
 | 
				
			||||||
 | 
					        "gzclose.c",
 | 
				
			||||||
 | 
					        "gzlib.c",
 | 
				
			||||||
 | 
					        "gzread.c",
 | 
				
			||||||
 | 
					        "gzwrite.c",
 | 
				
			||||||
 | 
					        "infback.c",
 | 
				
			||||||
 | 
					        "inffast.c",
 | 
				
			||||||
 | 
					        "inflate.c",
 | 
				
			||||||
 | 
					        "inftrees.c",
 | 
				
			||||||
 | 
					        "trees.c",
 | 
				
			||||||
 | 
					        "uncompr.c",
 | 
				
			||||||
 | 
					        "zutil.c",
 | 
				
			||||||
 | 
					        # Include the un-prefixed headers in srcs to work
 | 
				
			||||||
 | 
					        # around the fact that zlib isn't consistent in its
 | 
				
			||||||
 | 
					        # choice of <> or "" delimiter when including itself.
 | 
				
			||||||
 | 
					    ] + _ZLIB_HEADERS,
 | 
				
			||||||
 | 
					    hdrs = _ZLIB_PREFIXED_HEADERS,
 | 
				
			||||||
 | 
					    copts = [
 | 
				
			||||||
 | 
					        "-Wno-unused-variable",
 | 
				
			||||||
 | 
					        "-Wno-implicit-function-declaration",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    includes = ["zlib/include/"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -22,6 +22,8 @@ def polygerrit_bundle(name, srcs, outs, app):
 | 
				
			|||||||
        deps = [name + "_closure_lib"],
 | 
					        deps = [name + "_closure_lib"],
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # TODO(davido): Remove JSC_REFERENCE_BEFORE_DECLARE when this is fixed upstream:
 | 
				
			||||||
 | 
					    # https://github.com/Polymer/polymer-resin/issues/7
 | 
				
			||||||
    closure_js_library(
 | 
					    closure_js_library(
 | 
				
			||||||
        name = name + "_closure_lib",
 | 
					        name = name + "_closure_lib",
 | 
				
			||||||
        srcs = [appName + ".js"],
 | 
					        srcs = [appName + ".js"],
 | 
				
			||||||
@@ -30,6 +32,7 @@ def polygerrit_bundle(name, srcs, outs, app):
 | 
				
			|||||||
        # and remove this supression
 | 
					        # and remove this supression
 | 
				
			||||||
        suppress = [
 | 
					        suppress = [
 | 
				
			||||||
            "JSC_JSDOC_MISSING_TYPE_WARNING",
 | 
					            "JSC_JSDOC_MISSING_TYPE_WARNING",
 | 
				
			||||||
 | 
					            "JSC_REFERENCE_BEFORE_DECLARE",
 | 
				
			||||||
            "JSC_UNNECESSARY_ESCAPE",
 | 
					            "JSC_UNNECESSARY_ESCAPE",
 | 
				
			||||||
            "JSC_UNUSED_LOCAL_ASSIGNMENT",
 | 
					            "JSC_UNUSED_LOCAL_ASSIGNMENT",
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user