-
Notifications
You must be signed in to change notification settings - Fork 47
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
rpcserver: format rpcLog error #426
Conversation
88dbe89
to
499fc24
Compare
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 🎉
tools/Dockerfile
Outdated
@@ -11,6 +11,7 @@ RUN cd /tmp \ | |||
&& mkdir -p /tmp/build/.modcache \ | |||
&& cd /tmp/tools \ | |||
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \ | |||
&& chmod -R 777 /tmp/build/ | |||
&& chmod -R 777 /tmp/build/ \ | |||
&& git config --global --add safe.directory /build |
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.
Doesn't seem to be working just yet...
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.
Fixed in #427
I am still not sure how it can be solved in lnd without making the folder "safe" for git 😕
3e44bf4
to
4e2b5af
Compare
We were using `Error(<string>, <err>)` instead of `Errorf(<string>, <err>)`. The error was appended at the end of the message instead of replacing the `%v` tag in the message.
@@ -11,6 +11,9 @@ RUN cd /tmp \ | |||
&& mkdir -p /tmp/build/.modcache \ | |||
&& cd /tmp/tools \ | |||
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \ | |||
&& chmod -R 777 /tmp/build/ | |||
&& chmod -R 777 /tmp/build/ \ | |||
&& git config --global --add safe.directory /build |
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.
I guess this was a rebase issue. I don't think we actually still need this.
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.
Yes it was T.T I will delete it in a next PR
We were using
Error(<string>, <err>)
instead ofErrorf(<string>, <err>)
. The error was appended at the end of the message instead of replacing the%v
tag in the message.Fixes #425