-
Notifications
You must be signed in to change notification settings - Fork 38k
Trivial: Update http URL of MIT license to use https #12192
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
Conversation
src/crypto/ctaes/ctaes.h
Outdated
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.
Should be submitted upstream for the ctaes subtree, if wanted
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 point, I do not know the codebase very well yet. Issued PR to ctaes in bitcoin-core/ctaes#13 .
@fwolfst Please see the notes on Scripted Diffs in doc/developer-notes.md. Please note that there has been a large increase in PR activity recently (a good problem to have!) and reviewers are struggling to keep up, so simple refactoring, language changes or other cleanup sometimes don't get a lot of immediate attention. |
You could also help with review, if you feel like it. Due to the amount of open pull requests, there are some easier ones to get started. Even with limited understanding of the code, just compiling them and passing in edge-cases until they break is useful. https://github.com/bitcoin/bitcoin/pulls?q=is%3Apr+is%3Aopen+label%3ADocs |
Edit Will figure that one out - will re-read CONTRIBUTE.md and just try if a changed commit message influences the PR. |
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.
Please send secp256k1 changes upstream.
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 pointing that out. Issued in bitcoin-core/secp256k1#503 .
src/univalue/gen/gen.cpp
Outdated
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.
Univalue changes also need to go upstream.
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 pointing that out. Issued at jgarzik/univalue#47 .
@fwolfst Please don't close PRs and open new ones with the same changes. For this to be merged, you'll need to remove any changes to sub-trees in this repository (you can open PRs with the changes upstream if you'd like). Then rebase and update the commits to be proper scripted diffs, see developer-notes. A large diff like this will likely be merged after a branch off. |
Needs rebase if still relevant |
will do that next week
…On Sat, Feb 10, 2018 at 8:13 PM, MarcoFalke ***@***.***> wrote:
Needs rebase if still relevant
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12192 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANY7XmNYdqhXMOtKkrRfdjKc5pFEDYeks5tTepFgaJpZM4Reeff>
.
|
From a 'use https everywhere' perspective I agree with this change, but changing every single source file seems a bit much. |
New URL ACK:
Agree with @morcos regarding scripted diff. @laanwj does this change conflicts with other branches? |
Depending on how github computes conflicts (I'm not sure if, and if so how much, lines of context it uses - but how easy this builds up a list of conflicts below is one omen), possibly every single one. |
I will rebase soon and include a scripted_diff commit (I will have to figure out how this works WITHIN this PR). The target is moving a bit, because changes have already been accepted in included projects (jgarzik/univalue#47 and I guess bitcoin-core/secp256k1#503 will follow). |
9c47171
to
8d16208
Compare
I am not git native yet, but I think 8d16208 comes close to what should be (have been) done: I reset my branch, merged upstream and created a new "scripted" diff. There are still some 70 occurences of the old URL, which I will gladly scripted-diff-replace once I get green lights here. |
@fwolfst 8d16208 is still modifying the univalue subtree. |
8d16208
to
a164d7f
Compare
@fanquake Dealt with in fwolfst@a164d7f . Thanks. |
utACK a164d7f6dd5df1dbb9a77c56a57350f469e4b2da At this point you might as well bump the copyright headers altogether. Please add another commit with the dates bumped to 2018 (see ./contrib/devtools/README.md). |
@MarcoFalke Yep, cool. Tough my preferred way to deal with the copyright extension would be the following: you create an issue for that and assign it to me - I'd personally prefer to keep that stuff in a separate PR, as it has a different class of legal implications, but if the majority thinks otherwise I'd give it a go. |
Well its a legal statement indicating when (in certain countries) these (versions of the) files will enter the public domain. Anyway. Done. |
Needs rebase |
3297f28
to
25ac012
Compare
@MarcoFalke Thanks for seeing that. Done. Now, needs merge ;) |
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.
Why this change?
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.
My mistake. Glitch in my workflow after new rebase experience. Will fix soon. If I might ask: currently I replace old commits in this PR/my branch with hard resets and push -f
, to keep changes small and honor the scripted_diff
checks (except in last case, my apologies) - is that a correct thing to do?
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.
Jup, correct. You can also check the scripted diffs with the ./contrib/devtools/commit-script-check.sh
script.
25ac012
to
506c92c
Compare
Corrected in cdc7d3c .
|
Yup, good catch! If we're going to change this, let's be 100% sure we're using the correct address, and the one that is most likely to stay the same going forward. Which makes me wonder (sorry for always being a heretic) - what is the motivation for an external link at all? We carry a copy of the license in the repository, after all. Is the answer to cover for individually copied files? |
Gregory asked that as well and I had a good answer that I don't find in the
archives - probably it was "moderated away". It'd find it odd if header
stuff were to be removed, but would not consider it a serious issue to
dramatize about.
1) On the opensource.org website you can get further links, more
information, explanation and inspiration.
2) Like you mentioned: should you find the file out in the wild out of
context (happens all the time ;) ) you know what you have, saves a
google-query.
Why not skip all the header stuff?
3) Its a convention, although questioned. I guess there would be some PRs
trying to get it back it ("missing license headers"), because its so common.
Btw afaik same is true for the copyright headers in many legislatives. They
are not necessarily needed to protect your IP.
It'd opt **for** the headers though, to make the statement that a conscious
choice and responsability was taken, and that these decisions can be seen
as part of a bigger picture.
…On Fri, Feb 23, 2018 at 11:46 AM, Wladimir J. van der Laan < ***@***.***> wrote:
And also, I adjusted the URL. The canonical URL (and the one linked
already in Bitcoins README as well as from within the opensource.org
site) is https://opensource.org/licenses/MIT .
Yup, good catch! If we're going to change this, let's be 100% sure we're
using the correct address, and the one that is most likely to stay the same
going forward.
Which makes me wonder (sorry for always being a heretic) - what is the
motivation for an external link at all? We carry a copy of the license in
the repository, after all. Is the answer to cover for individually copied
files?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12192 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANY7SQS1XuFIDPuEzPJWXy5qCZPqh-vks5tXpcbgaJpZM4Reeff>
.
|
Thanks. To be clear I'm not advocating for removing the headers completely! that would require an infinite amount of discussion which I'm not going to spend my time left on earth partaking in. I was just curious as to an external URL link, as it is both more[1] and less[2] self-contained at the same time. *1 disambiguation of "MIT license" for individual files, as you say, without having to copy the whopping thing into every single file But to be clear, keeping it like this is OK to me. utACK. |
Hmm, Sorry for mentioning that so late. |
This commit deals with one part of bitcoin#12190 by replacing many occurrences of http://www.opensource.org/licenses/mit-license.php with https://opensource.org/licenses/MIT . A second commit could tackle the other occurrences where either "comment-star-boxes" (/* 80 chars */) are used or the URL appears in a different context. The src/univalue/ path is ignored, as it references https://github.com/jgarzik/univalue , where a similar issue is ady closed (jgarzik/univalue#47) and waiting to be included into this (bitcoin) repository. -BEGIN VERIFY SCRIPT- git ls-files | grep --invert-match 'src/univalue' | xargs sed -i \ -e 's,http://www.opensource.org/licenses/mit-license.php.$,https://opensource.org/licenses/MIT.,g' -END VERIFY SCRIPT-
good point @MarcoFalke. I ran it on a temporary clone to avoid corrupting unrelated stuff such as depends downloads. But I did not think of git's internal state. `git ls-files` is much better.
|
cdc7d3c
to
23f4029
Compare
Used the contrib/devtools/copyright_header.py script to extend Copyright in files edited in 2018. -BEGIN VERIFY SCRIPT- contrib/devtools/copyright_header.py update . -END VERIFY SCRIPT-
@laanwj Yes, you are right. Unfortunately the --exclude option of |
utACK b3047f4 |
@fwolfst Needs rebase |
Closing now that #12914 is open. |
Replace many occurrences of the old (non-https and HTTP/301 moved permanently anyway) URL to MIT license by newer link.
(Archive) First_ attempt was:
In two steps, update the links as described in the issue.
First commit:
sed
everything.Second commit: Fix whitespace syntactic sugar that got bitter due to different length of URLs.