-
Notifications
You must be signed in to change notification settings - Fork 129
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
Fixes #171 #172
Fixes #171 #172
Conversation
This change adds support for building JSDoc docs using nodejs. It also improves the JSDoc annotations used in the njs source code.
@@ -35,7 +35,7 @@ if [ -z ${DNS_RESOLVERS+x} ]; then | |||
resolvers="" | |||
for ip in $(grep nameserver /etc/resolv.conf | cut -d' ' -f2 | xargs) | |||
do | |||
if echo "${ip}" | grep -q ':'; then | |||
if echo "${ip}" | sed '/^[[:blank:]]*#/d;s/#.*//' | grep -q ':'; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the comment on the issue, did you look at https://github.com/nginxinc/docker-nginx/blob/master/entrypoint/15-local-resolvers.envsh for handling this?
It seems that in the case where DNS_RESOLVERS
is not specified, we could potentially set it equal to the value of the env var exported by this script which I think should already have been run by this point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, dang, I branched from the wrong commit. I'm going to redo this commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks like it contains a lot more than the stated fix. Can we trim it down to the relevant changes? Also left a small comment on the relevant portion to check if we've explored a path suggested by the reporter.
Closing in favor of #176 which does the same thing |
This fix should strip comments from
resolv.conf
files before they are parsed by grep. This change assumes that grep and sed are the GNU variants.