Skip to content

Commit

Permalink
Reduce the length of build script runfiles directory, to avoid the 26…
Browse files Browse the repository at this point in the history
…0 character path limit on windows
  • Loading branch information
cameron-martin committed Feb 2, 2024
1 parent c8bd225 commit b082e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bazel_dep(
repo_name = "com_google_protobuf",
)

internal_deps = use_extension("//rust/private:extensions.bzl", "internal_deps")
internal_deps = use_extension("//rust/private:extensions.bzl", "i")
use_repo(
internal_deps,
"bazelci_rules",
Expand Down
4 changes: 3 additions & 1 deletion rust/private/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def _internal_deps_impl(module_ctx):
root_module_direct_dev_deps = [],
)

internal_deps = module_extension(
# This is named a single character to reduce the size of path names when running build scripts, to reduce the chance
# of hitting the 260 character windows path name limit.
i = module_extension(
doc = "Dependencies for rules_rust",
implementation = _internal_deps_impl,
)

0 comments on commit b082e96

Please sign in to comment.