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

make: clean mobile stubs before building release #4983

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

guggero
Copy link
Collaborator

@guggero guggero commented Feb 5, 2021

To fix an issue where the vendor.tar.gz in a release build had a
different hash if the mobile RPC stubs were in the mobile/ folder, we
clean those out first.

The culprit was the google.golang.org/grpc/test/bufconn package which
is currently only used in the mobile RPC stubs and nowhere else.
Therefore the vendor/module.txt was different when vendoring with the
generated mobile RPC stubs being around.

Hash of vendor.tar.gz with mobile RPC stubs: 29f39fa2d9f3265a9bb162d1218d851899c732f1fd3d9c9c585887f19c6fb617
Hash of vendor.tar.gz without mobile RPC stubs: 8fb114940aed7b7b0893e6b7e1d20e0024a8d6f638fd37332d50266a3d8e2e79

To fix an issue where the vendor.tar.gz in a release build had a
different hash if the mobile RPC stubs were in the mobile/ folder, we
clean those out first.

The culprit was the `google.golang.org/grpc/test/bufconn` package which
is currently only used in the mobile RPC stubs and nowhere else.
Therefore the vendor/module.txt was different when vendoring with the
generated mobile RPC stubs being around.
@guggero guggero requested a review from halseth February 5, 2021 12:16
Copy link
Contributor

@halseth halseth left a comment

Choose a reason for hiding this comment

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

LGTM, this had me scratching my head a good bit 😁

Copy link
Collaborator

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

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

📵

@cfromknecht cfromknecht merged commit a5aeca8 into lightningnetwork:master Feb 7, 2021
@guggero guggero deleted the vendor-reproducible branch February 7, 2021 20:39
@cfromknecht cfromknecht mentioned this pull request Feb 11, 2021
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.

4 participants