Last active
February 8, 2017 18:31
-
-
Save jschaf/d7ea346ba37deda31b3a0866f8285dd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_binary") | |
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library") | |
closure_js_library( | |
name = "foo_lib", | |
srcs = ["foo.js"], | |
) | |
closure_js_binary( | |
name = "foo", | |
deps = [":foo_lib"], | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: /home/joe/tmp/bazelCyclic/BUILD:9:1: in closure_js_binary rule //:foo: cycle in dependency graph: | |
* //:foo | |
//:foo_lib | |
//:foo.js | |
* //:foo | |
This cycle occurred because of a configuration option. | |
ERROR: Analysis of target '//:foo' failed; build aborted. | |
INFO: Elapsed time: 1.772s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
console.log(`hello world`); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_archive( | |
name = "io_bazel_rules_closure", | |
sha256 = "b8c6dfea8ad3e691037b7eeecf5ab18ae39b74a51ff74c377d4f5eff97c894f4", | |
strip_prefix = "rules_closure-0.4.0", | |
urls = [ | |
"http://bazel-mirror.storage.googleapis.com/github.com/bazelbuild/rules_closure/archive/0.4.0.tar.gz", | |
"https://github.com/bazelbuild/rules_closure/archive/0.4.0.tar.gz", | |
], | |
) | |
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") | |
closure_repositories() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment