Skip to content

Commit

Permalink
fix: support --incompatible_use_plus_in_repo_names
Browse files Browse the repository at this point in the history
  • Loading branch information
kczulko committed Sep 26, 2024
1 parent bba714a commit 8eb82b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions repository/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
load("@bazel_tools//tools/build_defs/repo:utils.bzl", _patch = "patch")

# getting rid of the canonical repo name representation
# TODO: handle possible +
# should be compatible with https://github.com/bazelbuild/bazel/issues/23127
def fix_bzl_mod_repo_name(name):
return name.split("~")[-1]
repo_name = name.split("~")[-1]
if repo_name != name:
return repo_name

return name.split("+")[-1]

def _elm_repository_impl(rctx):
rctx.download_and_extract(
Expand Down

0 comments on commit 8eb82b8

Please sign in to comment.