Skip to content

Commit

Permalink
Fixed build issue on windows: realpath command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
smistad committed Dec 20, 2020
1 parent 50216cb commit 572f537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/remote_config/common.bzl
Expand Up @@ -274,7 +274,7 @@ def realpath(repository_ctx, path, bash_bin = None):
if bash_bin == None:
bash_bin = get_bash_bin(repository_ctx)

return execute(repository_ctx, [bash_bin, "-c", "realpath \"%s\"" % path]).stdout.strip()
return execute(repository_ctx, [bash_bin, "-cl", "realpath \"%s\"" % path]).stdout.strip()

def err_out(result):
"""Returns stderr if set, else stdout.
Expand Down

0 comments on commit 572f537

Please sign in to comment.