File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Bazel settings that apply to this repository.
22# Take care to document any settings that you expect users to apply.
33# Settings that apply only to CI are in .github/workflows/ci.bazelrc
4-
4+ build --nolegacy_external_runfiles
55
66# Load any settings specific to the current user.
77# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ _ATTRS = {
1717}
1818
1919def _impl (ctx ):
20- cmd = [ctx .var ["HELM_BIN " ]]
20+ cmd = [ctx .var ["HELM_RUNFILES_BIN " ]]
2121 cmd += ["lint" ]
2222 cmd += [ctx .file .chart .short_path ]
2323 if ctx .attr .strict :
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ def _helm_toolchain_impl(ctx):
3535 # See https://docs.bazel.build/versions/main/be/make-variables.html#custom_variables
3636 template_variables = platform_common .TemplateVariableInfo ({
3737 "HELM_BIN" : target_tool_path ,
38+ # Variable to use with disabled legacy_external_runfiles
39+ "HELM_RUNFILES_BIN" : target_tool_path .replace ("external/" , "../" , 1 )
3840 })
3941 default = DefaultInfo (
4042 files = depset (tool_files ),
You can’t perform that action at this time.
0 commit comments