Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Packaging] rust2rpm: ERROR: No license files were detected

Abierto
#1,208 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust
Área
build-system

Línea de trabajo

Start by inspecting Cargo.toml and Cargo.toml.orig, then compare the files included in the crates.io download with the repository's release process. Verify how rust2rpm detects license files and ensure the next crate archive contains the project's license file; confirm by rerunning rust2rpm pkgx without -I.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I wanted to package pkgx in Copr (so it can be installed using dnf on rpm-based distros, such as Fedora and RHEL).

I ran into the following error with rust2rpm:

$ rust2rpm pkgx
ERROR: No license files were detected. In almost all cases, this is an issue with
       the upstream project that should be reported.
• To temporarily ignore this issue, use the '--ignore-missing-license-files' / '-I'
  flag - for example, when manually including license files from the upstream
  project, or for test builds.

I think the solution is to include the license file in https://crates.io/api/v1/crates/pkgx/2.7.0/download (or the next release). I don't know how to do that. But what I know is that, currently, the files are:

$ tar xfv download.tar 
pkgx-2.7.0/.cargo_vcs_info.json
pkgx-2.7.0/Cargo.lock
pkgx-2.7.0/Cargo.toml
pkgx-2.7.0/Cargo.toml.orig
pkgx-2.7.0/README.md
pkgx-2.7.0/src/args.rs
pkgx-2.7.0/src/dump.rs
pkgx-2.7.0/src/execve.rs
pkgx-2.7.0/src/help.rs
pkgx-2.7.0/src/main.rs
pkgx-2.7.0/src/query.rs
pkgx-2.7.0/src/resolve.rs
pkgx-2.7.0/src/spinner.rs
pkgx-2.7.0/src/tests/main.rs
pkgx-2.7.0/src/tests/mod.rs
pkgx-2.7.0/src/which.rs
pkgx-2.7.0/src/x.rs

For now, I'll use the -I flag.

Lenguaje dominante
Rust
Estrellas
9.9k
Forks
1.4k
Merge medio
1 d 17 h
PR fusionados (30 d)
1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pkgxdev/pkgx

Todos los issues de pkgxdev/pkgx

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.