Commit
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 7dc35c0 ("validate manpages target") Fixes: commit a650f4d ("switch to cli-docs-tool for yaml docs generation") Co-authored-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Aleksa Sarai <asarai@suse.de> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
//go:build tools | ||
// +build tools | ||
// This is only used to define imports we need for doc generation. | ||
|
||
//go:build never | ||
// +build never | ||
|
||
package main | ||
|
||
import ( | ||
_ "github.com/cpuguy83/go-md2man/v2" | ||
_ "github.com/spf13/cobra" | ||
_ "github.com/spf13/cobra/doc" | ||
_ "github.com/spf13/pflag" | ||
) | ||
// Used for man page generation. | ||
import _ "github.com/cpuguy83/go-md2man/v2" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.