~sircmpwn/sr.ht-discuss

6 5

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<31121373-9015-4587-8202-731dfb2ee30a@www.fastmail.com>
DKIM signature
pass
Download raw message
Looks like the license detection logic currently just looks for LICENSE
and COPYING.  While we're suggesting paths to search for, I'd like to
throw UNLICENSE into the hat.  People who want to put their code in
the public domain sometimes do so by placing a copyright waiver in a
file called "UNLICENSE".

All the best,
Alex

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<20200407084830.0ba3f5f9ec2fd3c34b4518c8@fstab.me>
In-Reply-To
<31121373-9015-4587-8202-731dfb2ee30a@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On Tue, 07 Apr 2020 12:28:18 +0900, Alex Sayers wrote:
> Looks like the license detection logic currently just looks for LICENSE
> and COPYING.  While we're suggesting paths to search for, I'd like to
> throw UNLICENSE into the hat.  People who want to put their code in
> the public domain sometimes do so by placing a copyright waiver in a
> file called "UNLICENSE".

While it's probably sensible to extend the list of considered files for
licence detection, I think we should be wary of adding support for a
'special' licence like the Unlicense, especially considering all the
problems [0] with that specific piece of text.

Something else we could look at is supporting dual licencing.
In the Rust universe it's common to use both Apache-2.0 and MIT. The
file names used for the two licences are somewhat less standardised
unfortunately, but generally a pattern like 'LICENSE-APACHE' and
'LICENSE-MIT' is used.

Perhaps we could do some fairly strict text matching on anything in the
root directory with 'LICENSE' in it?


[0]: https://web.archive.org/web/20170301020915/https://lists.opensource.org/pipermail/license-review/2012-January/001386.html

Cheers,
-- 
Richard Bradfield

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<d3a2bd803e8834b77afb7c55f2829140@mail.anchor.net.au>
In-Reply-To
<31121373-9015-4587-8202-731dfb2ee30a@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
Putting your code into the public domain is still expressing a license.
It should be LICENSE.

---
Mike

On 2020-04-07 13:28, Alex Sayers wrote:
> Looks like the license detection logic currently just looks for LICENSE
> and COPYING.  While we're suggesting paths to search for, I'd like to
> throw UNLICENSE into the hat.  People who want to put their code in
> the public domain sometimes do so by placing a copyright waiver in a
> file called "UNLICENSE".
> 
> All the best,
> Alex

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<3b33590c-32ab-4bea-9044-a94ca029a151@www.fastmail.com>
In-Reply-To
<20200407084830.0ba3f5f9ec2fd3c34b4518c8@fstab.me> (view parent)
DKIM signature
pass
Download raw message
On Tue, 7 Apr 2020, at 4:48 PM, Richard Bradfield wrote:
> I think we should be wary of adding support for a
> 'special' licence like the Unlicense, especially considering all the
> problems [0] with that specific piece of text.

The purpose of the warning is (I assume) to make sure the user hasn't
forgotten to add a license. If there's a file called UNLICENSE you
at least know they haven't forgotten. (You may be right about the
unlicense being ill-conceived - I just think it's beside the point.)

Alex

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<20200407094218.b3928a27f2231cd17e220813@fstab.me>
In-Reply-To
<3b33590c-32ab-4bea-9044-a94ca029a151@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On Tue, 07 Apr 2020 17:27:20 +0900, Alex Sayers wrote:
> The purpose of the warning is (I assume) to make sure the user hasn't
> forgotten to add a license. If there's a file called UNLICENSE you
> at least know they haven't forgotten. (You may be right about the
> unlicense being ill-conceived - I just think it's beside the point.)

I see your point, perhaps, just for hiding the warning, it could be as
simple as looking for substring matches for 'COPY' and 'LICENSE'?

-- 
Richard Bradfield

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<8997677.RH3biPoPvx@heimdall>
In-Reply-To
<20200407094218.b3928a27f2231cd17e220813@fstab.me> (view parent)
DKIM signature
pass
Download raw message
> I see your point, perhaps, just for hiding the warning, it could be as
> simple as looking for substring matches for 'COPY' and 'LICENSE'?

That seems like a good approach to me, and would make the license detection to 
be more flexible.

Re: COPYRIGHT files not being detected as being a license file

Details
Message ID
<BEF130C7-A7C6-45A1-AD38-9743811B173D@gmail.com>
In-Reply-To
<8997677.RH3biPoPvx@heimdall> (view parent)
DKIM signature
pass
Download raw message
As an alternative, could the notification box just have a hide/ignore button?

> On Apr 7, 2020, at 07:01, Adam Jimerson <vendion@gmail.com> wrote:
> 
> 
>> 
>> I see your point, perhaps, just for hiding the warning, it could be as
>> simple as looking for substring matches for 'COPY' and 'LICENSE'?
> 
> That seems like a good approach to me, and would make the license detection to 
> be more flexible.
Reply to thread Export thread (mbox)