-
-
Notifications
You must be signed in to change notification settings - Fork 771
Add default license notice to all Rust files #3317
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
2 files we may need to consider: hudson: ~/tock (master) $ rg Copyright --type rust
capsules/src/sip_hash.rs
16://! Copyright 2012-2016 The Rust Project Developers.
17://! Copyright 2016-2021 Frank Denis.
18://! Copyright 2021 Western Digital
chips/nrf52/src/crt1.rs
11: * Copyright 2016, Michael Andersen <[email protected]> Based on the discussion on the call today, I think our conclusion was that these files should have the added copyright in this PR removed in favor of what is already there. It is also worth noting that the crt1 file seems to be licensed only under Apache 2.0 |
@hudson-ayers thanks for finding those! Fixed those two files (by just removing the lines I had added) |
I thought Pat was going to write up a policy document for license headers. Did I misunderstand during the meeting? |
You understood correctly, I don't think this will be merged without that document first getting written and approved. |
Why is the first line Apache or MIT, and the second line MIT or Apache? |
Oops... because I made a mistake. Will fix |
Rebased and added the |
@jrvanwhy done |
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.
@lschuermann The following files were added in #3110, should they be copyright 2022 or 2023?
Also, the following files were added in #3396, same question (2022 or 2023):
// Licensed under the Apache License, Version 2.0 or the MIT License. | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
// Copyright Tock Contributors 2022. | ||
|
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.
This file already has a license header, please revert.
Oh, and please don't bulk-update this PR to say 2023 instead of 2022 -- I've marked every file as viewed and I'd strongly prefer to not lose that state. |
Leon wasn't immediately available, so we decided on the core WG call to change these dates to 2023 so this can be merged ASAP. |
You'll need to add |
@jrvanwhy My apologies for the delayed response! 2023 is absolutely fine, I can update them right now. |
Okay, raced with @alevy on the push. This looks good to me otherwise, thanks so much for the work! |
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.
capsules/extra/src/can.rs
still has an extra header, but we can fix that in a later PR.
bors r+ |
👎 Rejected by label |
bors r+ |
This PR adds license headers for every file type in the repository that the license checker supports. This uses the same license notice style as tock#3317, setting the copyright year to the current year (2023) across-the-board. I removed the `/.envrc` and `/.direnv` exclusions, as I don't think they belong it `.lcignore`. I think they belong in `.gitignore` instead? I'd appreciate input on where they belong (or why I was wrong and they belong in `.lcignore`). I also made a stylistic decision to have a single `.lcignore` file in the root of the repository. To that end, I kept `doc/`-specific rules in the root `.lcignore`, and removed `tools/license-checker/testdata/.lcignore`.
3420: Add license headers to every file the license checker supports. r=jrvanwhy a=jrvanwhy This PR adds license headers for every file type in the repository that the license checker supports. This uses the same license notice style as #3317, setting the copyright year to the current year (2023) across-the-board. I removed the `/.envrc` and `/.direnv` exclusions, as I don't think they belong it `.lcignore`. I think they belong in `.gitignore` instead? I'd appreciate input on where they belong (or why I was wrong and they belong in `.lcignore`). I also made a stylistic decision to have a single `.lcignore` file in the root of the repository. To that end, I kept `doc/`-specific rules in the root `.lcignore`, and removed `tools/license-checker/testdata/.lcignore`. Oh, and I removed the duplicate header on `capsules/extra/src/can.rs`. 3424: doc: notes: update dates and format r=brghena a=bradjc ### Pull Request Overview Just a couple of minor fixes to documentation dates and formatting I found. ### Testing Strategy This pull request was tested by... ### TODO or Help Wanted This pull request still needs... ### Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [x] Ran `make prepush`. Co-authored-by: Johnathan Van Why <[email protected]> Co-authored-by: Brad Campbell <[email protected]>
Pull Request Overview
This pull request adds a default copyright and license notice to all Rust files in the repository
Testing Strategy
None
TODO or Help Wanted
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.