bootc-dev / bootc-dev/bootc

lint: Add --fix

Abierto
#1,055 9 comentarios 1 reacción 0 asignados Ver en GitHub
area/container-lint enhancement
Lenguaje dominante
Rust
Estrellas
2.3k
Forks
230
Merge medio
3 d 12 h
PR fusionados (30 d)
38

Descripción

I really wanted to avoid bootc being involved in being a "build system" - we should clearly support multiple build systems.

Right now we have `bootc container lint` which is an optional thing to invoke as part of a build, and it has grown more and more checks. It's readonly today.

In this issue I propose adding `--fix` (much like `cargo clippy` and `cargo clippy --fix` etc.).

Some things like `/var/run` we could easily apply the fix for (delete the link and let it be created by systemd-tmpfiles) e.g.

## Fixing users and tmpfiles

In https://github.com/coreos/rpm-ostree/issues/5230 I was thinking about trying to split out rpm-ostree's code for dealing with `/var` -> tmpfiles.d into something that can be invoked in a bit more standalone fashion.

However if we have `--fix` here...I think we could consider moving the tmpfiles.d and sysusers.d handling into this project instead. It's clearly within our dependency set already.

Does anyone have opinions on this?

If we did things this way then what would happen is all the tmpfiles.d code would move into this project, and rpm-ostree would just call it.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the `bootc container lint` command and review the issue discussion, then read the linked rpm-ostree issue about `/var` handling. The proposal is to add `--fix`, but the scope—individual fixes versus moving tmpfiles.d and sysusers.d handling into bootc—needs resolution before completion can be defined.

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

Evaluación

Stack tecnológico
rust
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.