From acb6e24209d9d57f3afd1fcaf98eb8b2efa7fac4 Mon Sep 17 00:00:00 2001 From: Buzz-Lightyear Date: Wed, 9 Oct 2024 09:22:06 -0400 Subject: [PATCH] Using underscore for better readability --- internal/bzlmod/go_deps.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bzlmod/go_deps.bzl b/internal/bzlmod/go_deps.bzl index d6cc7455a..43d9bdf53 100644 --- a/internal/bzlmod/go_deps.bzl +++ b/internal/bzlmod/go_deps.bzl @@ -170,7 +170,7 @@ def _repo_name(importpath): def _encode_case(c): """Repo names end up as directory names, therefore we can't rely on case to distinguish importpaths that only differ in case""" - return "1" + c.lower() if c.isupper() else c + return "_" + c.lower() if c.isupper() else c return "".join([_encode_case(c) if c.isalnum() else "_" for c in candidate_name.elems()])