bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
216 stars 171 forks source link

Refactor all the input processing code. #756

Closed aiuto closed 9 months ago

aiuto commented 11 months ago
  1. This brings the code more in line with the preferred rule writing style. Specifically, don't pass ctx around, pass the intent so you can control behavior.
  2. A major motivation for the change is adding include_runfiles to pkg_tar, where we want to sometimes have add_label_list do the runfiles inclusion for us, and other times we want to revert to legacy behavior. If we only signaled runfiles in a single attribute in ctx, that would not be possible.

Other considerations.