-
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
Handling extensions in Project.toml
#105
Comments
* Fix project order for 1.9 Solves #105 * Apply suggestions from code review --------- Co-authored-by: Dilum Aluthge <[email protected]>
It seems this is fixed by #106 and may be closed? |
Yes indeed! |
I think this fix might not work for all Julia versions: with exactly the same |
I confirm that Pkg orders sections in this way for 1.6 but not 1.7, 1.8, 1.9 |
If anyone runs into this, my solution is to only test project formatting whenever the Julia version is > 1.6 |
The output of your CI log indeed indicates that something else modified the Indeed, the
The same for the Julia nightly test. I don't understand why this happens right now, though... and in any case, it seems kinda problematic, because it also defeats the purpose of the whole test: if we let Does anyone know...
|
Even outside of CI, if the Project.toml has been formatted in Julia <= 1.6, the new version of Aqua will throw an error |
Yeah, my central point is that the actual problem then is that something re-formatted
Now, what I still don't understand is why these updates happen. At the start of the GH Action
which indicates something is going on; but I never see this in my local tests. Speaking from a purely logical point of view, I also don't understand why it would be updating |
I'm running into the same issue. JuliaLang/Pkg.jl#3481 mentions:
If I'm not mistaken, everyone using Aqua.jl's defaults on a LTS-compatible package with extensions must be running into this problem. |
My solution is to only Aqua-test the package on v1.7 and above but it's not perfect. If you see a workaround, do speak up ;) |
This currently requires breaking up Maybe on 1.6, the Edit: Maybe |
No. You can do it like this: Aqua.test_all(
YourPackage;
project_toml_formatting=(VERSION >= v"1.7")
) |
But the issue remains that if CI modifies the Project.toml, this test will automatically pass even though it would have failed locally |
Julia 1.9 introduces weak dependencies and extensions, which are specified in
Project.toml
. During my tests, it seems Aqua.jl demands another order of sections than the other tools I use (Pkg.jl and PackageCompatUI.jl). Is that possible? If so, what would be the rationale?Aqua order:
Pkg order:
The text was updated successfully, but these errors were encountered: