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

Cargo.toml: Replace '/' with 'OR' in 'license' #4920

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 8, 2018

Catch up with our recommendations from 7dee65f (#4898), which deprecated / in favor of vanilla SPDX license expressions.

I've gone with the disjunctive OR, because the README has:

Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@matklad
Copy link
Member

matklad commented Jan 8, 2018

There's the second Cargo.toml at https://github.com/rust-lang/cargo/blob/master/src/crates-io/Cargo.toml

Catch up with our recommendations from 7dee65f (src/doc/manifest: Pin
'license' to SPDX 2.1 expressions and the 2.4 list, 2018-01-04,
rust-lang#4898), which deprecated '/' in favor of vanilla SPDX license
expressions.

I've gone with the disjunctive OR, because the README has:

> Cargo is primarily distributed under the terms of both the MIT
> license and the Apache License (Version 2.0).
@wking
Copy link
Contributor Author

wking commented Jan 8, 2018 via email

@matklad
Copy link
Member

matklad commented Jan 8, 2018

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Jan 8, 2018

📌 Commit 4977c4c has been approved by matklad

@bors
Copy link
Collaborator

bors commented Jan 8, 2018

⌛ Testing commit 4977c4c with merge f60ece9...

bors added a commit that referenced this pull request Jan 8, 2018
Cargo.toml: Replace '/' with 'OR' in 'license'

Catch up with our recommendations from 7dee65f (#4898), which deprecated `/` in favor of vanilla SPDX license expressions.

I've gone with the disjunctive `OR`, because the README has:

> Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
@bors
Copy link
Collaborator

bors commented Jan 8, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: matklad
Pushing f60ece9 to master...

@bors bors merged commit 4977c4c into rust-lang:master Jan 8, 2018
@wking wking deleted the license-expression branch January 8, 2018 20:59
wking added a commit to wking/licensee that referenced this pull request Jan 9, 2018
Using a regex that is similar to the one in
lib/licensee/matchers/spdx.rb in allowing spaces and parens.  Parens
aren't currently supported by Cargo's crates.io backing [1,2], but
that's hopefully a temporary limitation.  And Cargo/crates.io already
supports OR forms [3].

Ideally licensee would return the full license expression in these
cases instead of 'other' [4].  But since that conversion is happening
outside the matcher this commit isn't making that any worse (although
it means this test isn't quite a unit test).

[1]: ehuss/license-exprs#3
[2]: rust-lang/cargo@c89dd64
[3]: rust-lang/cargo#4920
[4]: licensee#244
wking added a commit to wking/licensee that referenced this pull request Jan 9, 2018
Using a regex that is similar to the one in
lib/licensee/matchers/spdx.rb in allowing spaces and parens.  Parens
aren't currently supported by Cargo's crates.io backing [1,2], but
that's hopefully a temporary limitation.  And Cargo/crates.io already
supports OR forms [3].

Ideally licensee would return the full license expression in these
cases instead of 'other' [4].  But since that conversion is happening
outside the matcher, this commit isn't making that any worse (although
it means this test isn't quite a unit test).

[1]: ehuss/license-exprs#3
[2]: rust-lang/cargo@c89dd64
[3]: rust-lang/cargo#4920
[4]: licensee#244
@ehuss ehuss added this to the 1.25.0 milestone Feb 6, 2022
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