Skip to content

Expand the default set of licenses in PREFERRED_LICENSES  #28661

Open
@wolftune

Description

@wolftune

Currently, PREFERRED_LICENSES lists only Apache-2.0 and MIT

I imagine that comes from an opinion from some parts of the developer community that opposes copyleft licensing. However, it would be more neutral for Gitea to start with a full set of the common licenses from https://choosealicense.com/ (which is linked anyway), and if particular Gitea instances want to limit the preferences, they can do so.

I suggest the default be AGPL-3.0-or-later,GPL-3.0-or-later,LGPL-3.0-or-later,Apache-2.0,MIT,BSD-3-Clause,CC-BY-SA-4.0,CC-BY-4.0,CC0-1.0

That list is a set of licenses that are all officially recognized as free by the main organizations in this space (FSF, OSI, CC, and others), they are all the latest versions, and this particular set is all compatible (any mix of repos using any of these licenses can be combined in derivatives). This list is close to the one at https://choosealicense.com/licenses/ (and in comparable order) with https://choosealicense.com/non-software/ added to the end. I omitted the MPL (compatibility issues) and added BSD-3 (just common use) and didn't include Boost (not sure why choosealicense highlights it, I guess the point is like MIT but zero requirement of license notice for binaries) or Unlicense.

Whatever the final choice, I think the default file should not be only Apache and MIT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions