1*9bb1b549SSpandan Das# Copyright 2019 The Bazel Authors. All rights reserved. 2*9bb1b549SSpandan Das# 3*9bb1b549SSpandan Das# Licensed under the Apache License, Version 2.0 (the "License"); 4*9bb1b549SSpandan Das# you may not use this file except in compliance with the License. 5*9bb1b549SSpandan Das# You may obtain a copy of the License at 6*9bb1b549SSpandan Das# 7*9bb1b549SSpandan Das# http://www.apache.org/licenses/LICENSE-2.0 8*9bb1b549SSpandan Das# 9*9bb1b549SSpandan Das# Unless required by applicable law or agreed to in writing, software 10*9bb1b549SSpandan Das# distributed under the License is distributed on an "AS IS" BASIS, 11*9bb1b549SSpandan Das# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*9bb1b549SSpandan Das# See the License for the specific language governing permissions and 13*9bb1b549SSpandan Das# limitations under the License. 14*9bb1b549SSpandan Das 15*9bb1b549SSpandan Das"""Repository dependencies for embed_data.bzl""" 16*9bb1b549SSpandan Das 17*9bb1b549SSpandan Dasload( 18*9bb1b549SSpandan Das "@bazel_tools//tools/build_defs/repo:git.bzl", 19*9bb1b549SSpandan Das "git_repository", 20*9bb1b549SSpandan Das) 21*9bb1b549SSpandan Das 22*9bb1b549SSpandan Dasdef go_embed_data_dependencies(): 23*9bb1b549SSpandan Das print("Embedding is now better handled by using rules_go's built-in embedding functionality (https://github.com/bazelbuild/rules_go/blob/master/docs/go/core/rules.md#go_library-embedsrcs). The `go_embed_data_dependencies` macro is deprecated and will be removed in rules_go version 0.39.") 24*9bb1b549SSpandan Das 25*9bb1b549SSpandan Das if "com_github_kevinburke_go_bindata" not in native.existing_rules(): 26*9bb1b549SSpandan Das git_repository( 27*9bb1b549SSpandan Das name = "com_github_kevinburke_go_bindata", 28*9bb1b549SSpandan Das remote = "https://github.com/kevinburke/go-bindata", 29*9bb1b549SSpandan Das # v3.13.0+incompatible, "latest" as of 2019-07-08 30*9bb1b549SSpandan Das commit = "53d73b98acf3bd9f56d7f9136ed8e1be64756e1d", 31*9bb1b549SSpandan Das patches = [Label("//third_party:com_github_kevinburke_go_bindata-gazelle.patch")], 32*9bb1b549SSpandan Das patch_args = ["-p1"], 33*9bb1b549SSpandan Das shallow_since = "1545009224 +0000", 34*9bb1b549SSpandan Das # gazelle args: -go_prefix github.com/kevinburke/go-bindata 35*9bb1b549SSpandan Das ) 36