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

Supress 'apk info' noise when testing docs #44369

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

murraybd
Copy link
Member

@murraybd murraybd commented Mar 3, 2025

apk info will produce some WARNING messages when being run and this supresses those. Here's an example:

2025/03/03 13:44:21 WARN + apk info -L gdbm-doc
2025/03/03 13:44:21 WARN + grep ^usr/share/info/
2025/03/03 13:44:21 WARN WARNING: opening /home/brian-murray/Working/wolfi-os/packages: No such file or directory
2025/03/03 13:44:21 WARN WARNING: opening from cache https://packages.wolfi.dev/os: No such file or directory
2025/03/03 13:44:21 WARN + '[' -f /usr/share/info/gdbm.info ]
2025/03/03 13:44:21 WARN + info -f /usr/share/info/gdbm.info -o -
2025/03/03 13:44:21 WARN + wc -l
2025/03/03 13:44:21 WARN + '[' 74 -gt 0 ]
2025/03/03 13:44:21 WARN + doc_files=true
2025/03/03 13:44:21 WARN + apk info -L gdbm-doc
2025/03/03 13:44:21 WARN + grep ^usr/share/
2025/03/03 13:44:21 WARN WARNING: opening /home/brian-murray/Working/wolfi-os/packages: No such file or directory
2025/03/03 13:44:21 WARN WARNING: opening from cache https://packages.wolfi.dev/os: No such file or directory

@murraybd murraybd requested a review from a team as a code owner March 3, 2025 21:43
@murraybd murraybd enabled auto-merge (squash) March 3, 2025 23:38
@dannf
Copy link
Member

dannf commented Mar 3, 2025

What about using apk -qL instead of apk -L? Not sure if its significantly different functionality wise, but would save some columns.

@murraybd
Copy link
Member Author

murraybd commented Mar 4, 2025

What about using apk -qL instead of apk -L? Not sure if its significantly different functionality wise, but would save some columns.

That seems way better, thanks!

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.

2 participants