cli icon indicating copy to clipboard operation
cli copied to clipboard

docs: include required tools in source tree

Open thaJeztah opened this issue 2 years ago • 2 comments

  • carry of https://github.com/docker/cli/pull/4228
  • ⚠️ we should update this to use https://github.com/docker/cli-docs-tool/pull/14, so that we don't have to compile and install go-md2man

In order to be able to build the documentation without internet access (as is required by some distribution build systems), all of the source code needed for the build needs to be available in the source tarball.

This used to be possible with the docker-cli sources but was accidentally broken with some CI changes that switched to downloading the tools (by modifying go.mod as part of the docs build script).

This pattern also maked documentation builds less reproducible since the tool version used was not based on the source code version.

Fixes: commit 7dc35c03fca5 ("validate manpages target") Fixes: commit a650f4ddd008 ("switch to cli-docs-tool for yaml docs generation")

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

thaJeztah avatar Feb 29 '24 12:02 thaJeztah

(Also wondering if we can rewrite things to be a go:generate)

thaJeztah avatar Feb 29 '24 12:02 thaJeztah

Codecov Report

Merging #4903 (f6f0e4b) into master (249b5a4) will increase coverage by 0.18%. The diff coverage is n/a.

:exclamation: Current head f6f0e4b differs from pull request most recent head b46bfe4. Consider uploading reports for the commit b46bfe4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4903      +/-   ##
==========================================
+ Coverage   61.04%   61.23%   +0.18%     
==========================================
  Files         295      287       -8     
  Lines       20648    20090     -558     
==========================================
- Hits        12605    12302     -303     
+ Misses       7147     6894     -253     
+ Partials      896      894       -2     

codecov-commenter avatar Apr 12 '24 11:04 codecov-commenter