Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/build+compile: allow opt-out of dependents gathering (#5038)
* compile: allow opt-out of dependents gathering With `.WithPruneUnused(true)`, the compiler (of the compile package) no longer collects dependents of its entrypoints. The resulting bundle, if used with the wasm target, will no longer be semantically equivalent to the bundle built with the rego target. Since we're unable to have entrypoints for functions, this allows building modules that we couldn't build before. Fixes #5035. * cmd/build: expose new configurable via --prune-unused Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
- Loading branch information
Showing
4 changed files
with
158 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters