fix(windows): use HOMEPATH in place of HOME
diff --git a/lib/private/repo_utils.bzl b/lib/private/repo_utils.bzl
index c861bfa..d018d83 100644
--- a/lib/private/repo_utils.bzl
+++ b/lib/private/repo_utils.bzl
@@ -40,6 +40,11 @@
Returns:
The environment variable value or the default if it is not set
"""
+
+ # On Windows, the HOME environment variable is named differently.
+ # See https://pureinfotech.com/list-environment-variables-windows-10/
+ if name == "HOME" and _is_windows(rctx):
+ name = "HOMEPATH"
if name in rctx.os.environ:
return rctx.os.environ[name]
return default