Skip to content

Commit

Permalink
feat: Allow directories as sources (#6)
Browse files Browse the repository at this point in the history
Internal shell copy commands don't recursively copy which breaks if a source
DefaultInfo path is to a directory and not a file.
  • Loading branch information
sallustfire authored Feb 11, 2024
1 parent 245e565 commit aabf28d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/helm-chart-package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _helm_chart_impl(ctx):
outputs = [out],
inputs = [srcfile],
arguments = [srcfile.path, out.path],
command = "cp $1 $2",
command = "cp -r $1 $2",
)

if tmp_chart_root == "":
Expand Down Expand Up @@ -113,7 +113,7 @@ def _helm_chart_impl(ctx):
outputs = [out],
inputs = [file],
arguments = [file.path, out.path],
command = "cp $1 $2",
command = "cp -r $1 $2",
)

exec_file = ctx.actions.declare_file(ctx.label.name + "_helm_bash")
Expand Down

0 comments on commit aabf28d

Please sign in to comment.