Fix for starlark incompatible change
This avoids an error under `--incompatible_string_join_requires_strings` by explicitly calling str() around a repository_ctx.path() object.
The error only presented itself while in the process of trying to report another underlying failure (bazelbuild/rules_python#208). I don't have an easy way to confirm that this fixes it.
RELNOTES: None
@@ -109,7 +109,7 @@ def _update(ctx, git_repo):
update_submodules(ctx, git_repo)
def init(ctx, git_repo):
- cl = ["git", "init", git_repo.directory]
+ cl = ["git", "init", str(git_repo.directory)]
st = ctx.execute(cl, environment = ctx.os.environ)
if st.return_code != 0:
_error(ctx.name, cl, st.stderr)
