From c11f1fc4f9b57b81e9abfe7202f535de5e711b7d Mon Sep 17 00:00:00 2001 From: Andrew Gasparovic <55992101+agasparovic-sabre@users.noreply.github.com> Date: Wed, 20 May 2020 16:01:57 -0700 Subject: [PATCH] Fix Starlark function syntax It's no longer working with the latest version of Bazel. Tested by adding cpp_redis dependency to another repository's WORKSPACE and calling `cpp_redis_repositories()`, then executing `bazel build @com_github_cpp_redis_cpp_redis//:cpp_redis`. --- repositories.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repositories.bzl b/repositories.bzl index 86cc85a..3e506f2 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -1,7 +1,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -cpp_redis_repositories: +def cpp_redis_repositories(): """Add external dependencies to the workspace.""" maybe( http_archive,