Skip to content

Commit 07c7928

Browse files
gkdnmollyibot
andauthored
Remove dependency to archived closure-library. (#641)
* . * Add base.js * add comment --------- Co-authored-by: mollyibot <93746690+mollyibot@users.noreply.github.com>
1 parent fc64784 commit 07c7928

File tree

4 files changed

+3554
-17
lines changed

4 files changed

+3554
-17
lines changed

closure/compiler/closure_base_js_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _closure_base_js_library(ctx):
2121
if not ctx.files.srcs:
2222
fail("Must provide sources")
2323

24-
return create_closure_js_library(ctx, ctx.files.srcs)
24+
return create_closure_js_library(ctx, ctx.files.srcs, lenient=True)
2525

2626
# Only usable to create a closure js library for base.js
2727
closure_base_js_library = rule(

closure/private/BUILD

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("//closure/compiler:closure_base_js_library.bzl", "closure_base_js_library")
1615
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
16+
load("//closure/compiler:closure_base_js_library.bzl", "closure_base_js_library")
1717

1818
package(default_visibility = ["//visibility:public"])
1919

@@ -28,9 +28,8 @@ sh_binary(
2828

2929
closure_base_js_library(
3030
name = "base_lib",
31-
srcs = [
32-
"@com_google_javascript_closure_library//closure/goog:base.js",
33-
],
31+
# TODO(goktug): replace with base.js from compiler when included in the artifact.
32+
srcs = ["base.js"],
3433
)
3534

3635
bzl_library(

0 commit comments

Comments
 (0)