Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect host alias symlink on some platforms #80

Merged
merged 1 commit into from
May 15, 2024

Conversation

kormide
Copy link
Contributor

@kormide kormide commented May 13, 2024

Fixes #78.

@kormide kormide force-pushed the fix-host-alias-symlink branch from a44b638 to c7f1123 Compare May 13, 2024 17:57
@kormide kormide changed the title fix: incorrect host symlink on some platforms fix: incorrect host alias symlink on some platforms May 13, 2024
@@ -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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the bugs here (and I must have not been testing under bzlmod) is that we need to use the actual name from the repository context to properly capture the bzlmod repo path in the symlink.

@kormide kormide force-pushed the fix-host-alias-symlink branch 4 times, most recently from 96cc0c0 to 1e8b98c Compare May 13, 2024 18:21
Copy link
Owner

@abrisco abrisco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting up this PR!

helm/repositories.bzl Show resolved Hide resolved
@kormide kormide force-pushed the fix-host-alias-symlink branch 2 times, most recently from 1703734 to dfed62e Compare May 14, 2024 17:03
@kormide kormide requested a review from abrisco May 14, 2024 17:04
@kormide kormide force-pushed the fix-host-alias-symlink branch from dfed62e to 4ab8ce3 Compare May 14, 2024 17:21
@kormide kormide force-pushed the fix-host-alias-symlink branch from 4ab8ce3 to e88448a Compare May 14, 2024 17:21
Copy link
Owner

@abrisco abrisco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@abrisco abrisco merged commit d3c0930 into abrisco:main May 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with sub-repo naming for windows
2 participants