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

fix wolfictl text check #1364

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ jobs:
with:
repository: 'wolfi-dev/os'
path: 'wolfi-os'

# This command is not itself used by Wolfi directly, but it demonstrates that we're able to construct a graph of packages
# without cycles or unsatisfied deps, which prevents a class of build failures.
# This check is here to ensure that graph construction changes in this repo don't break graph resolution on the Wolfi OS repo.
- name: Test Wolfi OS repo
run: |
./wolfictl text -d wolfi-os \
--type=name \
--pipeline-dir=wolfi-os/pipelines/ \
--repository-append=https://packages.wolfi.dev/os \
--keyring-append=https://packages.wolfi.dev/os/wolfi-signing.rsa.pub \
--keyring-append=https://packages.wolfi.dev/bootstrap/stage3/wolfi-signing.rsa.pub \
--repository-append=https://packages.wolfi.dev/bootstrap/stage3

Expand Down
1 change: 0 additions & 1 deletion docs/cmd/wolfictl.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ A CLI helper for developing Wolfi
* [wolfictl lint](wolfictl_lint.md) - Lint the code
* [wolfictl ruby](wolfictl_ruby.md) - Work with ruby packages
* [wolfictl scan](wolfictl_scan.md) - Scan a package for vulnerabilities
* [wolfictl text](wolfictl_text.md) - Print a sorted list of downstream dependent packages
* [wolfictl version](wolfictl_version.md) - Prints the version
* [wolfictl withdraw](wolfictl_withdraw.md) - Withdraw packages from an APKINDEX.tar.gz

36 changes: 0 additions & 36 deletions docs/cmd/wolfictl_text.md

This file was deleted.

61 changes: 0 additions & 61 deletions docs/man/man1/wolfictl-text.1

This file was deleted.

2 changes: 1 addition & 1 deletion docs/man/man1/wolfictl.1
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ A CLI helper for developing Wolfi

.SH SEE ALSO
.PP
\fBwolfictl\-advisory(1)\fP, \fBwolfictl\-apk(1)\fP, \fBwolfictl\-bump(1)\fP, \fBwolfictl\-check(1)\fP, \fBwolfictl\-dot(1)\fP, \fBwolfictl\-gh(1)\fP, \fBwolfictl\-image(1)\fP, \fBwolfictl\-lint(1)\fP, \fBwolfictl\-ruby(1)\fP, \fBwolfictl\-scan(1)\fP, \fBwolfictl\-text(1)\fP, \fBwolfictl\-version(1)\fP, \fBwolfictl\-withdraw(1)\fP
\fBwolfictl\-advisory(1)\fP, \fBwolfictl\-apk(1)\fP, \fBwolfictl\-bump(1)\fP, \fBwolfictl\-check(1)\fP, \fBwolfictl\-dot(1)\fP, \fBwolfictl\-gh(1)\fP, \fBwolfictl\-image(1)\fP, \fBwolfictl\-lint(1)\fP, \fBwolfictl\-ruby(1)\fP, \fBwolfictl\-scan(1)\fP, \fBwolfictl\-version(1)\fP, \fBwolfictl\-withdraw(1)\fP
8 changes: 7 additions & 1 deletion pkg/cli/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ func cmdText() *cobra.Command {
text := &cobra.Command{
Use: "text",
Short: "Print a sorted list of downstream dependent packages",
Args: cobra.NoArgs,
Long: `This command prints a list of packages, sorted in the order they would need to be built.

If this command is successful, it means there is a solveable dependency graph and the packages can be built in the order they are printed.

If this fails, there may be an unsatisfiable dependency or a cycle in the graph.`,
Args: cobra.NoArgs,
Hidden: true,
RunE: func(cmd *cobra.Command, _ []string) error {
ctx := cmd.Context()
if pipelineDir == "" {
Expand Down
Loading