Skip to content

Commit

Permalink
fix: incorrect host alias symlink on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed May 13, 2024
1 parent eb91f2d commit c7f1123
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 6 additions & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions helm/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@aspect_bazel_lib//lib:repo_utils.bzl", "repo_utils")
load("//helm/private:versions.bzl", "DEFAULT_HELM_URL_TEMPLATES", "DEFAULT_HELM_VERSION", "HELM_VERSIONS")

_HELM_TAR_BUILD_CONTENT = """\
Expand Down Expand Up @@ -124,12 +125,9 @@ exports_files(["helm{ext}"])
ext = ext,
))

platform = "{}_{}".format(repository_ctx.os.name, repository_ctx.os.arch)
platform_repo_name = _helm_bin_repo_name(platform)

repository_ctx.symlink("../{platform_repo_name}/helm{ext}".format(
repository_ctx.symlink("../{name}_{platform}/helm{ext}".format(
name = repository_ctx.attr.name,
platform_repo_name = platform_repo_name,
platform = repo_utils.platform(repository_ctx),
ext = ext,
), "helm{ext}".format(ext = ext))

Expand Down

0 comments on commit c7f1123

Please sign in to comment.