Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable urfave markdown/man docs generation #5566

Merged
merged 1 commit into from Jun 15, 2022

Conversation

brandond
Copy link
Contributor

@brandond brandond commented May 13, 2022

Proposed Changes

Disable urfave markdown/man docs generation. We're not using either of these, so it's just bloat.

From urfave/cli#1383 :

This removes the resulting binary dependency on cpuguy83/md2man and
russross/blackfriday (and a few more packages imported by those),
which saves more than 400 KB (more than 300 KB
once stripped) from the resulting binary.

A/B comparison of builds without/with this commit:

k3s binary dist/artifacts/k3s size 66265088 is less than max acceptable size of 67108864 bytes (64 MiB)
k3s binary dist/artifacts/k3s size 65044480 is less than max acceptable size of 67108864 bytes (64 MiB)

This is a savings of 1192 Kb - just shy of 1MiB.

Types of Changes

size reduction

Verification

Check size of resulting K3s binary

Linked Issues

User-Facing Change

NONE

Further Comments

@brandond brandond marked this pull request as ready for review May 13, 2022 21:01
@brandond brandond requested a review from a team as a code owner May 13, 2022 21:01
@brandond brandond force-pushed the cli_no_docs branch 5 times, most recently from a964d0e to 06721e9 Compare June 15, 2022 17:52
From urfave/cli#1383 :
> This removes the resulting binary dependency on cpuguy83/md2man and
> russross/blackfriday (and a few more packages imported by those),
> which saves more than 400 KB (more than 300 KB
> once stripped) from the resulting binary.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond
Copy link
Contributor Author

merging with rebase to fix go.mod conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants