github.com/ajguerrer/rules_go@v0.20.3/extras/embed_data_deps.bzl (about)

     1  # Copyright 2019 The Bazel Authors. All rights reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #    http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  load(
    16      "@bazel_tools//tools/build_defs/repo:git.bzl",
    17      "git_repository",
    18  )
    19  
    20  def go_embed_data_dependencies():
    21      if "com_github_kevinburke_go_bindata" not in native.existing_rules():
    22          git_repository(
    23              name = "com_github_kevinburke_go_bindata",
    24              remote = "https://github.com/kevinburke/go-bindata",
    25              # v3.13.0+incompatible, "latest" as of 2019-07-08
    26              commit = "53d73b98acf3bd9f56d7f9136ed8e1be64756e1d",
    27              patches = ["@io_bazel_rules_go//third_party:com_github_kevinburke_go_bindata-gazelle.patch"],
    28              patch_args = ["-p1"],
    29              shallow_since = "1545009224 +0000",
    30              # gazelle args: -go_prefix github.com/kevinburke/go-bindata
    31          )