-
Notifications
You must be signed in to change notification settings - Fork 104
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
Verify that a rendered template is valid YAML #1362
Conversation
Fix makefile if PATH does not include GOPATH/bin Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
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.
LGTM! Only nits.
./hack/install-golangcilint.sh | ||
endif | ||
golangci-lint run | ||
if [ ! -f ${GOPATH}/bin/golangci-lint ]; then ./hack/install-golangcilint.sh; fi |
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 assumes that golangci-lint
is in $GOPATH/bin
. If it has been installed elsewhere (e.g. by using the homebrew tap), this will run the script anyways. OTOH,hack/install-golangcilint.sh
assumes that $GOPATH/bin
is in $PATH
🤷♂
How about adding $GOPATH/bin
to $PATH
in hack/install-golangcilint.sh
?
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, that's too late :(
Because hack/install-golangcilint.sh
doesn't run golangci-lint
. The path manipulation would have to be done in the Makefile
. Let's not change it in the Makefile
and let's keep your approach.
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.
Yeah... It's messy :(
Co-Authored-By: Jan Schlicht <jan@d2iq.com> Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
a5e5874
to
524b029
Compare
* Verify that a rendered template is valid YAML Co-Authored-By: Jan Schlicht <jan@d2iq.com> Signed-off-by: Andreas Neumann <aneumann@mesosphere.com> Signed-off-by: Thomas Runyon <runyontr@gmail.com>
Fix makefile if PATH does not include GOPATH/bin
Signed-off-by: Andreas Neumann aneumann@mesosphere.com