-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lint: Add --fix #1055
Comments
Tangential a while ago of course we added |
I'm not apposed to this. The main con I see with relying on an extra post processing step like this is that users have to get into the weeds and know to run this. There may not be an easy way to avoid that. In general, I like the linting check and I think we should promote it more. A more controversial question is, do we even need to expose a separate "--fix" option? Why not fix by default? I see pros & cons either way. |
It would be useful to ignore some fixes. e.g.
|
What relevance does Only for compatibility do we have a symlink The only fatal problem (that the lint checks for) is if
|
Sorry, I meant |
It's tempting to add But still the same question though; what relevance does |
The rationale for not doing it by default is that anything we fix is really something better fixed elsewhere to start for most of these things...and the original naming was intended for that. This said, there's some things we know we can really safely and sanely fix (like when you have |
This was the case previously. After a quick test on Stream 10, it appears to now be unnecessary. Having a fix flag with fine-grained control of ignored fixes would allow more leeway for aggressive fixes. |
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 likecargo clippy
andcargo 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 coreos/rpm-ostree#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.
The text was updated successfully, but these errors were encountered: