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

Drop the Submodule for Bitcoin core and commit license directly #83

Open
MattDHill opened this issue Jul 20, 2022 · 17 comments
Open

Drop the Submodule for Bitcoin core and commit license directly #83

MattDHill opened this issue Jul 20, 2022 · 17 comments

Comments

@MattDHill
Copy link
Member

No description provided.

@chrisguida
Copy link
Contributor

Can you elaborate one what this means and why it is needed?

@MattDHill
Copy link
Member Author

The only reason we are have the bitcoin submodule is to sync the license. Since Bitcoin's license isn't likely to ever change, this seems like a waste. We should just add an MIT license to the wrapper repo.

@chrisguida
Copy link
Contributor

The license is updated every year to change the year: https://github.com/bitcoin/bitcoin/blob/master/COPYING

Are you saying we should copy this license file into the wrapper repo every year?

What's being wasted exactly? The submodule is merely a pointer to the upstream repo, takes up like 100 bytes. Also, the submodule points to a specific commit hash, which the Dockerfile does not do.

@MattDHill
Copy link
Member Author

What does the commit hash have to do with this?

@chrisguida
Copy link
Contributor

I'm saying that the submodule is useful. I'm arguing for keeping it.

@MattDHill
Copy link
Member Author

Useful for what. We only use it for a license that is MIT forever

@MattDHill
Copy link
Member Author

Wait now I'm not seeing the submodule link to v22 anymore. Maybe things look different on mobile?

@chrisguida
Copy link
Contributor

It's there, but you're right, it's pointing to v22 xD

Screen Shot 2022-07-21 at 9 29 43 AM

IMO we should just build from the git repo, that's what it's there for. Verifying all the PGP keys is sort of pointless and becoming harder to maintain.

CC @dr-bonez @kn0wmad

@chrisguida
Copy link
Contributor

chrisguida commented Jul 21, 2022

Useful for what. We only use it for a license that is MIT forever

I just told you. It's useful because it points to a specific git commit...

Though obviously since we're currently pointing at the wrong commit, we're not using it for this. But we should.

@MattDHill
Copy link
Member Author

I don't understand why having the commit hash for the license is important

@chrisguida
Copy link
Contributor

Having the commit hash for the code is important

@MattDHill
Copy link
Member Author

I agree, but this ticket is about NOT using the submodule for the license under the assumption we are using bitcoin.org for the code.

@chrisguida
Copy link
Contributor

Right, and i'm arguing that, instead of implementing this ticket, we should instead switch away from building from bitcoin.org and build from the submodule instead. This is much more auditable and easy to maintain IMO. It's how we do it in pretty much all our other packages.

@MattDHill
Copy link
Member Author

IDK @dr-bonez said he preferred it this way

@dr-bonez
Copy link
Member

Who maintains the mirror on github for bitcoin core?

@dr-bonez
Copy link
Member

Or is it the official repo?

@chrisguida
Copy link
Contributor

Github is where all the dev happens... bitcoin.org is where the binaries are hosted. It makes sense to verify the keys when you're just installing a binary, but we're building from source, from the official repo. Let's just actually use the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants