Skip to content

Fixing errors of a new project does not make it clear that non-OSI-approved license may be used #3540

@nagisa

Description

@nagisa
$ cargo new banana
     Created library `banana` project
$ cargo publish
    Updating registry `https://github.com/rust-lang/crates.io-index`
warning: manifest has no description, license, license-file, documentation, homepage or repository.
...
error: api errors: missing or empty metadata fields: description, license. Please see http://doc.crates.io/manifest.html#package-metadata for how to upload metadata
# add
# description = "this is a banana"
# license = "TBA"
$ cargo publish
    Updating registry `https://github.com/rust-lang/crates.io-index`
warning: manifest has no documentation, homepage or repository.
…
error: api errors: unknown license or other term: TBA; see http://opensource.org/licenses for options, and http://spdx.org/licenses/ for their identifiers
# From the error above assume non-OSI license cannot be used T_T

The errors should make it clear what all the alternatives/valid values are. For example nowhere it is stated (other than in documentation), that license = "custom" is a valid option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions