-
Notifications
You must be signed in to change notification settings - Fork 25
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
Project.toml formatting test not sensible in julia pre-1.7 #208
Comments
In my opinion, the whole As such, my preferred "fix" for this "problem" would be to remove the |
@gdalle @fingolfin Let's please discuss #206, #209, and #210 here until we decide on one of them to keep the discussion in one place |
I think the change of default order from julia 1.6 to 1.7 is a good indicator that this test is actually needed. Imagine having two people working on a project together but with different julia versions that enforce different formatting. In this case, even though there is no "real" change to the Thus, my preferred solution fix would be to exclude this test from all julia/Pkg.jl versions that modify the |
Sounds good to me |
I just ran into this issue again in a private project on Julia 1.9. The setup is a bit special (exported Preferences.jl preferences in the Project.toml - maybe the issue was caused by JuliaPackaging/Preferences.jl#52?) but nevertheless this means I'll just have to disable this check in yet another repo. IMO this Aqua test should just be removed completely since apparently not even libraries such as Pkg and Preferences can agree on a specific order. |
Maybe instead of the other one could just check the presence of various components? And their relations? As in, if there's a target section there must be extras, etc |
Ok, so the existence of JuliaPackaging/Preferences.jl#52 (and possibly many similar things in other packages) is a dealbreaker for me. I would thus proceed with #209. @fingolfin @gdalle Objections? |
I agree that it seems like it does more harm than good these days |
Pkg.jl
my alter aProject.toml
file when instantiating before julia 1.7 (cf. JuliaLang/Pkg.jl#3481 (comment)).Thus, the current test is basically a no-op returning
pass
on julia 1.6 and before (in CI), as theProject.toml
gets formatted when instantiating the project and thus everything is already formatted when Aqua inspects it.If a package uses package extensions, this is even worse, as the automatic formatting on julia 1.6 and before is incompatible with the one required by the Aqua test. Therefore, this test always fails in these cases.
For the previous discussion, please refer to #105 (comment) and the comments below it.
The text was updated successfully, but these errors were encountered: