Packaging: the published crates contain no LICENSE file

Open Beginner friendly
#598 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
release

Research direction

The issue identifies the workspace Cargo.toml, the five crate directories, and cargo package --list as the relevant entry point. Read the workspace license settings, then check how Cargo includes files in each crate package. Add the root license text to all five published packages and verify each package list includes LICENSE.

Written by the indexing model from the issue text.

Description

bug

The five published crates declare license = "Apache-2.0", but none of their packages contains the license text. The only copy is the repository's root LICENSE. Each crate's README names the license and links its text on apache.org.

Section 4(a) of the license makes a copy of it a condition of redistribution (LICENSE 90-96): "You must give any other recipients of the Work or Derivative Works a copy of this License". Whoever redistributes a crate as it comes from crates.io, for example as vendored sources or in a distribution package, gets no copy to pass on.

On 392a3bf, from the repository root:

$ cargo package --list --allow-dirty -p tellus-bootstrap-dns
.cargo_vcs_info.json
CHANGELOG.md
Cargo.lock
Cargo.toml
Cargo.toml.orig
README.md
release-notes/351-query-validation.md
release-notes/tellus-0-6.md
release-notes/tellus-0-7.md
src/lib.rs
tests/dns_seeds.rs
$ for c in tellus tellus-bootstrap-dns tellus-bootstrap-k8s tellus-cluster-inspect tellus-persistence-postgres; do cargo package --list --allow-dirty -p $c; done | grep -ci license
0

The packages on crates.io have none either: tellus 0.6.0, tellus-bootstrap-dns 0.2.0, tellus-bootstrap-k8s 0.2.0, tellus-cluster-inspect 0.2.0 and tellus-persistence-postgres 0.3.0, downloaded from static.crates.io and listed with tar tz, contain no file named like a license.

The license field is set once in the workspace (Cargo.toml 9) and inherited by each crate with license = { workspace = true }. No crate sets include, exclude or license-file, and no crate directory holds a LICENSE.

Suggestion: a LICENSE in each of the five crate directories, a copy of the root file or a symlink to it. With tellus-bootstrap-dns/LICENSE as a symlink to ../LICENSE, cargo package --list shows LICENSE, and the .crate holds it as a regular file of 11,358 bytes, the size of the root file.

Dominant language
Rust
Stars
37
Forks
1
Avg merge
4h 56m
Merged PRs (30d)
219

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tellus-rs/tellus

All issues in tellus-rs/tellus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.