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

spec_helper: Restore case-insensitive matching in find_spdx #568

Merged
merged 1 commit into from
Jan 3, 2018

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 3, 2018

The previous case-insensitive matching was removed in e5f46fa (#418). That commit was designed to allow case-sensitive matching as discussed in #72. But while I'm in favor of case-sensitive keys in spdx_list, the case-sensitive match breaks script/check-approval which downcases its argument since it was added in 8e56bb8 (#318).

There are more notes on SPDX's plans for case sensitivity in spdx/spdx-spec#63, so we should see a clearer policy there soon. I'm arguing for case-sensitive display with optional case-insensitive matching. I am optimistic that the SPDX will at least agree not to register short IDs that only differ by case, which is all we need to make this
case-insensitive match safe here.

The previous case-insensitive matching was removed in e5f46fa (test
required spdx-ids against data from spdx, 2016-05-25, github#418).  That
commit was designed [1] to allow case-sensitive matching as discussed
in [2].  But while I'm in favor of case-sensitive keys in spdx_list,
the case-sensitive match breaks script/check-approval which downcases
its argument since it was added in 8e56bb8 (add
script/check-approval, 2016-01-18, github#318).

There are more notes on SPDX's plans for case sensitivity in [3], so
we should see a clearer policy there soon.  I'm arguing for
case-sensitive *display* with optional case-insensitive matching.  I
am optimistic that the SPDX will at least agree not to register short
IDs that only differ by case, which is all we need to make this
case-insensitive match safe here.

[1]: github#418 (comment)
[2]: licensee/licensee#72
[3]: spdx/spdx-spec#63
@mlinksva mlinksva merged commit 3ad9bf7 into github:gh-pages Jan 3, 2018
@wking wking deleted the case-insensitive-spdx-lookup branch January 3, 2018 19:38
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.

2 participants