-
Notifications
You must be signed in to change notification settings - Fork 30
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
frdrpc: convert frdrpc into a go module #194
Conversation
cd86296
to
5c4a47b
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.
Thanks for the PR. A couple of minor things, otherwise looks good.
frdrpc/go.mod
Outdated
@@ -0,0 +1,17 @@ | |||
module github.com/lightninglabs/faraday/frdrpc | |||
|
|||
go 1.22.3 |
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.
nit: when we're touching or creating all these go.mod
files, can we please also sync the place we put the version? Either all at the top or the bottom of the file? Instinctively I'd say probably at the bottom...
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.
Good idea! Done.
tools/Dockerfile
Outdated
&& chmod -R 777 /tmp/build/ | ||
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \ | ||
&& 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 think the ENV GOFLAGS="-buildvcs=false"
is the actual, preferred fix for the issue? Or did that no longer work?
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, I think I was just simply adopting the Dockerfile
that we use in other lightninglabs
projects. Modified to use the suggested flag instead.
tools/go.mod
Outdated
@@ -1,9 +1,197 @@ | |||
module github.com/lightninglabs/faraday/tools | |||
|
|||
go 1.16 | |||
go 1.21 |
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.
We might as well bump this version too...
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.
Done.
5c4a47b
to
3a3c8ca
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.
Thanks for the review @guggero! Attempted to address all your comments, PTAL 🙏
frdrpc/go.mod
Outdated
@@ -0,0 +1,17 @@ | |||
module github.com/lightninglabs/faraday/frdrpc | |||
|
|||
go 1.22.3 |
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.
Good idea! Done.
tools/Dockerfile
Outdated
&& chmod -R 777 /tmp/build/ | ||
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \ | ||
&& 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.
Yeah, I think I was just simply adopting the Dockerfile
that we use in other lightninglabs
projects. Modified to use the suggested flag instead.
tools/go.mod
Outdated
@@ -1,9 +1,197 @@ | |||
module github.com/lightninglabs/faraday/tools | |||
|
|||
go 1.16 | |||
go 1.21 |
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.
Done.
@guggero: review reminder |
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 🎉
This commit transforms the frdrpc subpackage into a versioned module. By doing so, projects that rely solely on the generated RPC code from the proto files will benefit from significantly reduced dependencies during compilation.
Pull Request Checklist
MinLndVersion
if your PR uses new RPC methods or fields oflnd
.