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

Makefile: use urfave_cli_no_docs for binaries that don't need it #6998

Merged
merged 1 commit into from Jun 1, 2022

Commits on May 27, 2022

  1. Makefile: use urfave_cli_no_docs for binaries that don't need it

    We only need the `ToMan()` as part of the `bin/gen-manpages` binary, which
    generates the man-pages; other binaries don't use this code, so we can
    set the `urfave_cli_no_docs` build-tag to exclude `cpuguy83/md2man` and
    `russross/blackfriday` (and other dependencies) from the binaries:
    
    Before:
    
        ls -lh bin
        total 149M
        -rwxr-xr-x 1 root root  49M May 27 10:12 containerd
        -rwxr-xr-x 1 root root 6.1M May 27 10:13 containerd-shim
        -rwxr-xr-x 1 root root 8.1M May 27 10:13 containerd-shim-runc-v1
        -rwxr-xr-x 1 root root 8.2M May 27 10:13 containerd-shim-runc-v2
        -rwxr-xr-x 1 root root  22M May 27 10:12 containerd-stress
        -rwxr-xr-x 1 root root  26M May 27 10:11 ctr
        -rwxr-xr-x 1 root root  30M May 27 10:14 gen-manpages
    
        ls -l bin
        total 151676
        -rwxr-xr-x 1 root root 51280184 May 27 10:12 containerd
        -rwxr-xr-x 1 root root  6332416 May 27 10:13 containerd-shim
        -rwxr-xr-x 1 root root  8458240 May 27 10:13 containerd-shim-runc-v1
        -rwxr-xr-x 1 root root  8536064 May 27 10:13 containerd-shim-runc-v2
        -rwxr-xr-x 1 root root 22567160 May 27 10:12 containerd-stress
        -rwxr-xr-x 1 root root 26873752 May 27 10:11 ctr
        -rwxr-xr-x 1 root root 30508888 May 27 10:14 gen-manpages
    
    After:
    
        ls -lh bin
        total 147M
        -rwxr-xr-x 1 root root  49M May 27 10:26 containerd
        -rwxr-xr-x 1 root root 6.1M May 27 10:26 containerd-shim
        -rwxr-xr-x 1 root root 8.1M May 27 10:26 containerd-shim-runc-v1
        -rwxr-xr-x 1 root root 8.2M May 27 10:26 containerd-shim-runc-v2
        -rwxr-xr-x 1 root root  22M May 27 10:26 containerd-stress
        -rwxr-xr-x 1 root root  26M May 27 10:26 ctr
        -rwxr-xr-x 1 root root  30M May 27 10:27 gen-manpages
    
        ls -l bin
        total 149912
        -rwxr-xr-x 1 root root 50930360 May 27 10:26 containerd
        -rwxr-xr-x 1 root root  6332416 May 27 10:26 containerd-shim
        -rwxr-xr-x 1 root root  8458240 May 27 10:26 containerd-shim-runc-v1
        -rwxr-xr-x 1 root root  8536064 May 27 10:26 containerd-shim-runc-v2
        -rwxr-xr-x 1 root root 22209144 May 27 10:26 containerd-stress
        -rwxr-xr-x 1 root root 26523896 May 27 10:26 ctr
        -rwxr-xr-x 1 root root 30508888 May 27 10:27 gen-manpages
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed May 27, 2022
    Configuration menu
    Copy the full SHA
    1a8024b View commit details
    Browse the repository at this point in the history