Skip to content

Issue in adding rust lightning as dependency on windows #2607

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

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

DhananjayPurohit
Copy link
Contributor

@DhananjayPurohit DhananjayPurohit commented Sep 27, 2023

I am having issue in adding rust-llightning as dependency on my windows machine. On debugging, I found this submodule icon inside /lightning-invoice/src:-

Screenshot (320)

The file lightning-invoice/src/time_utils.rs contains symbolic link to /lightning/src/util/time.rs which is followed fine on unix and darwin but not on windows.

It appears that lightning-invoice/src/time_utils.rs is no longer needed. I have tried fixing that in this PR.

@ariard

@tnull
Copy link
Contributor

tnull commented Sep 27, 2023

I think you can just enable symbolic link support when installing Git for Windows. You'll then want to set

git config --global core.symlinks true

after which you should be able to checkout rust-lightning just fine.

@G8XSU
Copy link
Contributor

G8XSU commented Sep 27, 2023

Ok, but this change looks good to go right ?
Can you squash all commits into 1 commit with proper commit message and description.

@tnull
Copy link
Contributor

tnull commented Sep 27, 2023

Ok, but this change looks good to go right ? Can you squash all commits into 1 commit with proper commit message and description.

Not sure, not too long ago @TheBlueMatt pushed back on removing the symlink: #2377.

@TheBlueMatt
Copy link
Collaborator

I'm not a fan of removing the symlink if we need the dup code, but we don't actually use time_utils in lightning-invoice anymore, so we should absolutely remove this! This LGTM, can you squash the commits down so they each build individually?

No longer needed time_utils in lightning-invoice
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3236be1) 90.34% compared to head (cf0cef8) 88.96%.
Report is 509 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2607      +/-   ##
==========================================
- Coverage   90.34%   88.96%   -1.39%     
==========================================
  Files         106      112       +6     
  Lines       55093    86199   +31106     
  Branches    55093    86199   +31106     
==========================================
+ Hits        49773    76683   +26910     
- Misses       5320     7285    +1965     
- Partials        0     2231    +2231     
Files Coverage Δ
lightning-invoice/src/lib.rs 85.23% <ø> (+6.06%) ⬆️

... and 115 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM

@TheBlueMatt TheBlueMatt merged commit 3141630 into lightningdevkit:main Sep 28, 2023
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.

5 participants