Skip to content

Dead code elimination partially disabled #2277

@seanamos

Description

@seanamos

urfave/cli directly uses text/template, and unfortunately this partially disables dead code elimination. However, "partial" in this context can result in significantly larger binaries depending on how many other dependencies you have. Full DCE can result in significant binary size reductions (50%+-).

Cobra recently added a fix/workaround for a similar issue:
spf13/cobra#1956

I appreciate there may not be a non-breaking way to solve this in v3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions