old_contents: """Bazel rule for loading external repository deps for J2CL."""
  
  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  
  def load_j2cl_repo_deps():
      _github_repo(
          name = "io_bazel_rules_closure",
          repo = "bazelbuild/rules_closure",
          tag = "master",
      )
  
      _github_repo(
          name = "bazel_skylib",
          repo = "bazelbuild/bazel-skylib",
          tag = "0.7.0",
      )
  
  def _github_repo(name, repo, tag):
      if name in native.existing_rules():
          return
  
      _, project_name = repo.split("/")
      http_archive(
          name = name,
          strip_prefix = "%s-%s" % (project_name, tag),
          url = "https://github.com/%s/archive/%s.zip" % (repo, tag),
      )
  
new_contents: """Bazel rule for loading external repository deps for J2CL."""
  
  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  
  def load_j2cl_repo_deps():
      _github_repo(
          name = "io_bazel_rules_closure",
          repo = "bazelbuild/rules_closure",
          tag = "master",
      )
  
      _github_repo(
          name = "bazel_skylib",
          repo = "bazelbuild/bazel-skylib",
          tag = "0.7.0",
      )
  
  def _github_repo(name, repo, tag):
      if native.existing_rule(name):
          return
  
      _, project_name = repo.split("/")
      http_archive(
          name = name,
          strip_prefix = "%s-%s" % (project_name, tag),
          url = "https://github.com/%s/archive/%s.zip" % (repo, tag),
      )
  
subject: fix build file/module bugs (#18)