moonbitlang / core

MoonBit's Core library
https://moonbitlang.com/
Apache License 2.0
586 stars 73 forks source link

[moon build system] bug: improper default value in `license` field in `moon.mod.json` #437

Closed shamiao closed 3 months ago

shamiao commented 4 months ago

moon new will make an empty project which is licensed under "license": "Apache-2.0". This is just bad, since users doesn't release their source code under any license implied.

It's suggested that license field has a proper default value like NO-LICENSE-APPLIED, TO-BE-FILLED-BY-OWNER etc.

The task of preventing non-free source code should be accomplished by https://mooncakes.io/ registry. It's the registry's job to reject any non SPDX identifier license field when users publish their mooncakes.

peter-jerry-ye commented 3 months ago

The default should be empty now.