Skip to content

Instantly share code, notes, and snippets.

@jschaf
Last active February 8, 2017 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jschaf/d7ea346ba37deda31b3a0866f8285dd5 to your computer and use it in GitHub Desktop.
Save jschaf/d7ea346ba37deda31b3a0866f8285dd5 to your computer and use it in GitHub Desktop.
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"],
)
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
(function() {
console.log(`hello world`);
})();
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