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

Improve module extension #130

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Conversation

mering
Copy link
Contributor

@mering mering commented Jan 7, 2025

  • Rename helm.options to helm.toolchain and this tag generates a new toolchain
  • Handle multiple extension calls correctly

@mering mering force-pushed the improve-module-extension branch 2 times, most recently from e860daa to e4bb9c3 Compare January 7, 2025 12:21
This makes it more obvious to the user what this tag does.
@mering mering force-pushed the improve-module-extension branch 4 times, most recently from a39ce9d to 2e5f44a Compare January 7, 2025 12:27
The generated repository name currently doesn't encode any other option
so we can only register a single toolchain for now.

Use more elaborate logic:
- Only allow registering a toolchain in the root module
- Only allow specifying a single toolchain and fail otherwise
@mering mering force-pushed the improve-module-extension branch from 2e5f44a to b5bb64f Compare January 7, 2025 12:29
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!

helm/extensions.bzl Outdated Show resolved Hide resolved
helm/extensions.bzl Outdated Show resolved Hide resolved
helm/extensions.bzl Outdated Show resolved Hide resolved
@abrisco abrisco merged commit 63d27e4 into abrisco:main Jan 7, 2025
8 checks passed
mering added a commit to mering/rules_helm that referenced this pull request Jan 8, 2025
abrisco pushed a commit that referenced this pull request Jan 23, 2025
Improvements after #130. This makes sure that there is always exactly
one toolchain defined, either in the root module or picking the default
one.
@mering mering deleted the improve-module-extension branch January 24, 2025 09:51
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.

2 participants