-
Notifications
You must be signed in to change notification settings - Fork 94
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
Reduce license header #1404
Reduce license header #1404
Conversation
GINKGO_ROOT_DIR="." | ||
|
||
|
||
LICENSE_FILE="${GINKGO_ROOT_DIR}/LICENSE" | ||
GINKGO_LICENSE_BEACON="******************************<GINKGO LICENSE>******************************" |
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.
does the structure allow the beacon?
I am wondering about some scripts that rely on the BEACON detection.
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.
Sorry, I didn't realize that other scripts also use the beacon. I will adjust them.
1858500
to
23da386
Compare
REUSE provides a python tool to verify reuse compliance. We could also add this to our CI pipeline. However, this will additionally require to:
|
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
23da386
to
eb6bd88
Compare
eb6bd88
to
a357ad3
Compare
a357ad3
to
d7a98ed
Compare
Note: Since the format CI is based on the jobs defined in |
See MarcelKoch#10 for CI check. The new license header is used properly in the CI. It was necessary to change the |
I saw you change some script to adapt the changes of beacon
With |
I would like to keep the new license as short as possible, that's why I'm using |
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! As the license is always the first part of the file, and much more structured, I also tend to agree we no longer need the beacon
I do not fully agree with it's more structured. beacon way does not hurt the structure but gives easy way to detect the block. something like https://github.com/fsfe/reuse-example/blob/main/src/main.c |
I meant that the reuse tool doesn't support it for adding new license header. Also, I don't see why we need to detect the block. Adding the license will be handled by reuse, which can detect it correctly, and the formatting by clang. |
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 consider it maybe from another side.
We need to pay additional attension on changing beacon to //
. handling license in two or three places may not be good for reuse/consistense.
I originally think it only need to change or create another file (SPDX...
)for add_licences/format_header. Other scripts work smoothly.
beacon way is widely used by tranditional license in my mind, so I am also suprised reuse tool may not support it.
request changes mainly for the wrong script and the inconsistence between "the" and "The"
Kudos, SonarCloud Quality Gate passed!
|
- fix script - always use `The` in copyright Co-authored-by: Yu-Hsiang M. Tsai <yhmtsai@gmail.com>
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 do not hold the concern for beacon now.
This PR changes how we handle our license declaration. It moves from the current block of license (~30 lines) to 3/4 lines as defined by https://reuse.software/. The new license header will now read as:
// SPDX-FileCopyrightText: 2017-2023 The Ginkgo authors
//
// SPDX-License-Identifier: BSD-3-Clause
It also updates the
add_license.sh
script accordinglyand changes the top-level license file. The latter might lead to issues with githubs automatic license detection.Todo: