Move repos.bzl into hack/build
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
parent
a3aaeba1e6
commit
57b97d77ac
@ -1,4 +1,4 @@
|
||||
# gazelle:repository_macro repos.bzl%go_repositories
|
||||
# gazelle:repository_macro hack/build/repos.bzl%go_repositories
|
||||
workspace(name = "com_github_jetstack_cert_manager")
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
@ -126,6 +126,6 @@ load("@brodocs_modules//:install_bazel_dependencies.bzl", "install_bazel_depende
|
||||
|
||||
install_bazel_dependencies()
|
||||
|
||||
load("//:repos.bzl", "go_repositories")
|
||||
load("//hack/build:repos.bzl", "go_repositories")
|
||||
|
||||
go_repositories()
|
||||
|
||||
@ -12,6 +12,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This file is automatically updated by hack/update-deps.sh
|
||||
|
||||
load("@bazel_gazelle//:deps.bzl", "go_repository")
|
||||
|
||||
def go_repositories():
|
||||
@ -89,7 +89,7 @@ esac
|
||||
rm -rf vendor
|
||||
"$go" mod tidy
|
||||
"$gazelle" update-repos \
|
||||
--from_file=go.mod --to_macro=repos.bzl%go_repositories \
|
||||
--from_file=go.mod --to_macro=hack/build/repos.bzl%go_repositories \
|
||||
--build_file_generation=on --build_file_proto_mode=disable
|
||||
"${update_bazel[@]}" # TODO(fejta): do we still need to do this?
|
||||
"${update_deps_licenses[@]}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user