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

update-changes: Warn if gawk is missing #47

Closed
wants to merge 1 commit into from

Conversation

awelzel
Copy link
Contributor

@awelzel awelzel commented Jan 11, 2024

It took a bit until I realized my CHANGES entries to Zeek didn't include the GH-1234 prefixes. Seems reasonable to expect gawk to be installed.

It took a bit until I realized my CHANGES entries to Zeek didn't include
the GH-1234 prefixes. Seems reasonable to expect gawk to be installed.
@@ -606,6 +606,11 @@ fi

echo
echo Type Enter to edit new $file_changes, or CTRL-C to abort without any modifications.
if ! command -v gawk; then
Copy link
Member

@bbannier bbannier Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot say how reasonable it is to expect gawk, but if we made this change we should also remove the redundant check in default_format_msg.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me close this PR. This was a knee-jerk reaction after finding an optional dependency changes the formatting of the output silently. And yeah, either we should fully require it or not change anything.

@awelzel awelzel closed this Jan 11, 2024
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